changed definition of ref in order to work around a bug in gcc-4.2.2

at -O3 that was computing incorrect addresses for ref(x, -n).
This commit is contained in:
Abdulaziz Ghuloum 2009-04-06 16:24:12 +03:00
parent 230b5186d6
commit 5e1066170e
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
1749
1750

View File

@ -249,7 +249,7 @@ long long extract_num_longlong(ikptr x);
#define is_fixnum(x) ((((unsigned long)(x)) & fx_mask) == 0)
#define ref(x,n) \
(((ikptr*)(((char*)(long int)(x)) + ((long int)(n))))[0])
(((ikptr*)(((long int)(x)) + ((long int)(n))))[0])
#define tagof(x) (((int)(x)) & 7)