Skip to content

Instantly share code, notes, and snippets.

@bdw
Created October 3, 2017 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdw/cb8ecce419ec0a01db1fab2e883b5dc9 to your computer and use it in GitHub Desktop.
Save bdw/cb8ecce419ec0a01db1fab2e883b5dc9 to your computer and use it in GitHub Desktop.
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