Advertisement
Guest User

Untitled

a guest
May 20th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. diff -r 52462bc541a3 rpython/translator/c/gc.py
  2. --- a/rpython/translator/c/gc.py Wed May 08 15:23:23 2019 +0200
  3. +++ b/rpython/translator/c/gc.py Fri May 10 09:17:44 2019 +0300
  4. @@ -461,10 +461,10 @@
  5. raise Exception("gc_pop_roots should be removed by postprocess_graph")
  6.  
  7. def OP_GC_ENTER_ROOTS_FRAME(self, funcgen, op):
  8. - return '%s += sizeof(pypy_ss_t);' % (funcgen.gcpol_ss,)
  9. + return '(char*)(%s) += sizeof(pypy_ss_t);' % (funcgen.gcpol_ss,)
  10.  
  11. def OP_GC_LEAVE_ROOTS_FRAME(self, funcgen, op):
  12. - return '%s -= sizeof(pypy_ss_t);' % (funcgen.gcpol_ss,)
  13. + return '(char*)(%s) -= sizeof(pypy_ss_t);' % (funcgen.gcpol_ss,)
  14.  
  15. def OP_GC_SAVE_ROOT(self, funcgen, op):
  16. num = op.args[0].value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement