Commit 845e4228 by Richard Stallman

(pcfinclude): Use HOST_WIDE_INT for rounding a pointer.

From-SVN: r1881
parent b39a6d43
...@@ -4384,11 +4384,12 @@ pcfinclude (buf, limit, name, op) ...@@ -4384,11 +4384,12 @@ pcfinclude (buf, limit, name, op)
/* First skip to a longword boundary */ /* First skip to a longword boundary */
/* ??? Why a 4-byte boundary? On all machines? */ /* ??? Why a 4-byte boundary? On all machines? */
/* NOTE: while int may not be as wide as a pointer on some machins, /* NOTE: This works correctly even if HOST_WIDE_INT
this is correct nonethelesss works anyway. is narrower than a pointer.
Do not try risky measures here to get another type to use! */ Do not try risky measures here to get another type to use!
if ((int) cp & 3) Do not include gstddef.h or stddef.h--either one will fail! */
cp += 4 - ((int) cp & 3); if ((HOST_WIDE_INT) cp & 3)
cp += 4 - ((HOST_WIDE_INT) cp & 3);
/* Now get the string. */ /* Now get the string. */
str = (STRINGDEF *) cp; str = (STRINGDEF *) cp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment