Another fix for cctest/test-run-machops/RunLoadImmIndex.
authorbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 31 Jul 2014 14:08:08 +0000 (14:08 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 31 Jul 2014 14:08:08 +0000 (14:08 +0000)
TBR=danno@chromium.org

Review URL: https://codereview.chromium.org/430203002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22759 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/compiler/test-run-machops.cc

index 06885a4..bfb8cb1 100644 (file)
@@ -2511,7 +2511,9 @@ static void RunLoadImmIndex(MachineRepresentation rep) {
       Node* index = m.Int32Constant((offset + i) * sizeof(buffer[0]));
       m.Return(m.Load(rep, base, index));
 
-      CHECK_EQ(static_cast<Type>(buffer[i]), m.Call());
+      Type expected = buffer[i];
+      Type actual = static_cast<CType>(m.Call());
+      CHECK_EQ(expected, actual);
       printf("XXX\n");
     }
   }