projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd6e9d
)
Removing unnecessary casts to nuint.
author
ahsonkhan
<ahson_ahmedk@yahoo.com>
Tue, 14 Feb 2017 07:53:04 +0000
(23:53 -0800)
committer
ahsonkhan
<ahson_ahmedk@yahoo.com>
Wed, 15 Feb 2017 01:17:56 +0000
(17:17 -0800)
src/mscorlib/src/System/Span.cs
patch
|
blob
|
history
diff --git
a/src/mscorlib/src/System/Span.cs
b/src/mscorlib/src/System/Span.cs
index
5d6b8ad
..
95039fb
100644
(file)
--- a/
src/mscorlib/src/System/Span.cs
+++ b/
src/mscorlib/src/System/Span.cs
@@
-857,8
+857,8
@@
namespace System
// TODO: Perhaps do switch casing to improve small size perf
-
var i = (nuint)
0;
-
var n = (nuint)
0;
+
nuint i =
0;
+
nuint n =
0;
while ((n = i + 8) <= (pointerSizeLength))
{
Unsafe.Add<IntPtr>(ref ip, (int)i + 0) = default(IntPtr);