Created
October 3, 2017 15:55
-
-
Save bdw/cb8ecce419ec0a01db1fab2e883b5dc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/profiler/heapsnapshot.c b/src/profiler/heapsnapshot.c | |
index 071954f..a4a6d9c 100644 | |
--- a/src/profiler/heapsnapshot.c | |
+++ b/src/profiler/heapsnapshot.c | |
@@ -820,7 +820,7 @@ void references_to_filehandle(MVMThreadContext *tc, MVMHeapSnapshotCollection *c | |
MVMuint64 maxval = MAX(kind, cindex); | |
- if (maxval + 1 >= 1l << 32) { | |
+ if (maxval + 1 >= (UINT64_C(1) << 32)) { | |
fputc('6', fh); | |
fwrite(&descr, sizeof(MVMuint8), 1, fh); | |
fwrite(&kind, sizeof(MVMuint64), 1, fh); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment