2016-04-08
2016-04-08 19:48:49 by Martin Nilsson <nilsson@fastmail.com>
-
6da27e02637a5811e67473303414ff0ba1ed7794
(7 lines)
(+4/-3)
[
Show
| Annotate
]
Branch: 8.1
Removed PTRDIFF_T_TO_LONG
1726:
*/
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.
1762: 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);