Fix arm64 build break
authorBruce Forstall <brucefo@microsoft.com>
Wed, 21 Jun 2017 19:26:56 +0000 (12:26 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Wed, 21 Jun 2017 19:26:56 +0000 (12:26 -0700)
[tfs-changeset: 1662444]

Commit migrated from https://github.com/dotnet/coreclr/commit/98bdd562b6ad4dd8820dbcc1b4a831b040772d19

src/coreclr/src/jit/gentree.h

index fbfbf2b..cb4033c 100644 (file)
@@ -3415,7 +3415,7 @@ struct GenTreeCall final : public GenTree
         }
 
         // Clear anything that was already there by masking out the bits before 'or'ing in what we want there.
-        gtSpillFlags = (gtSpillFlags & ~(0xffU << (idx * 2))) | (bits << (idx * 2));
+        gtSpillFlags = (unsigned char)((gtSpillFlags & ~(0xffU << (idx * 2))) | (bits << (idx * 2)));
 #else
         unreached();
 #endif