pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-05-09
2016-05-09 16:28:36 by Martin Nilsson <nilsson@fastmail.com>
0a3c553806fd3a01462d9f67fc9a11c1fe3b6009 (
9
lines) (+
5
/-
4
)
[
Show
|
Annotate
]
Branch:
8.1
LONGEST is just INT64, so use that instead.
2750:
} PMOD_EXPORT void string_builder_append_integer(struct string_builder *s,
-
LONGEST
val,
+
INT64
val,
unsigned int base, int flags, size_t min_width, size_t precision) {
-
unsigned
LONGEST
tmp;
+
unsigned
INT64
tmp;
size_t len = 1; const char *numbers = "0123456789abcdef"; if ((base < 2) || (base > 16)) {
2849:
else shift = delta; /* Calculate actual number of digits and initial shift. */
-
for (; shift < SIZEOF_
LONGEST
* 8 && tmp >> shift; shift += delta, len++)
+
for (; shift < SIZEOF_
INT64
* 8 && tmp >> shift; shift += delta, len++)
; if ((len < min_width) && !(flags & APPEND_LEFT)) {
2890:
#define VA_LIST_DEREF(X) (*(X)) #endif
-
static
LONGEST
pike_va_int(VA_LIST_PTR args, int flags)
+
static
INT64
pike_va_int(VA_LIST_PTR args, int flags)
{ switch (flags & (APPEND_WIDTH_MASK|APPEND_SIGNED)) { case APPEND_WIDTH_HALF: