[pypy-commit] stmgc default: Fix the test from llvm's current point of view

arigo noreply at buildbot.pypy.org
Sun Mar 16 12:32:41 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1042:d7e384cd1ea9
Date: 2014-03-16 12:32 +0100
http://bitbucket.org/pypy/stmgc/changeset/d7e384cd1ea9/

Log:	Fix the test from llvm's current point of view

diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c
--- a/c7/demo/demo_random.c
+++ b/c7/demo/demo_random.c
@@ -385,7 +385,7 @@
     for (i = 0; i < PREBUILT_ROOTS; i++) {
         void* new_templ = malloc(sizeof(struct node_s));
         memcpy(new_templ, &prebuilt_template, sizeof(struct node_s));
-        prebuilt_roots[i] = stm_setup_prebuilt((objptr_t)new_templ);
+        prebuilt_roots[i] = stm_setup_prebuilt((objptr_t)(long)new_templ);
 
         if (i % 2 == 0) {
             int hash = i + 5;


More information about the pypy-commit mailing list