2016-02-12
2016-02-12 13:50:54 by Martin Nilsson <nilsson@fastmail.com>
-
47970db31e66a2b094b33ff3102efc50f413c06c
(7 lines)
(+4/-3)
[
Show
| Annotate
]
Branch: no_ia64
Removed PTRDIFF_T_TO_LONG
1725:
*/
Pike_error("Illegal character 0x%04x (index %ld) "
"is not a Unicode character.",
- str2[i], PTRDIFF_T_TO_LONG(i));
+ str2[i], (long)i);
}
if (str2[i] > 0x10ffff) {
Pike_error("Character 0x%08x (index %ld) "
"is out of range (0x00000000..0x0010ffff).",
- str2[i], PTRDIFF_T_TO_LONG(i));
+ str2[i], (long)i);
}
/* Extra wide characters take two UTF16 characters in space.
* ie One UTF16 character extra.
1761: Inside #if defined(PIKE_DEBUG)
#ifdef PIKE_DEBUG
if (j) {
Pike_fatal("string_to_unicode(): Indexing error: len:%ld, j:%ld.\n",
- PTRDIFF_T_TO_LONG(len), PTRDIFF_T_TO_LONG(j));
+ (long)len, (long)j);
}
#endif /* PIKE_DEBUG */
out = end_shared_string(out);