1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-26 08:41:47 -07:00

Avoid bad cast on 64-bit.

Copied from Perforce
 Change: 185534
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2014-04-15 00:18:47 +01:00
parent cd1e68813c
commit 680956c4ea

View file

@ -66,7 +66,7 @@ static void test(void)
comment("%i of 10.", i);
UC;
z[i] = allocone(ap, 1, 1);
if (i % 8 == 0) { z[i] = (mycell *) ((int)z[i] + 4); } /* error to scan this! */
if (i % 8 == 0) { z[i] = (mycell *) ((mps_word_t)z[i] + 4); } /* error to scan this! */
}
for (i=0; i<1000; i++) {