diff options
Diffstat (limited to 'source/fitz/printf.c')
-rw-r--r-- | source/fitz/printf.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/fitz/printf.c b/source/fitz/printf.c index 718af4a4..3c75afbe 100644 --- a/source/fitz/printf.c +++ b/source/fitz/printf.c @@ -198,16 +198,10 @@ fz_vsnprintf(char *buffer, size_t space, const char *fmt, va_list args) } break; case 'z': - if (sizeof(size_t) >= 8) - length = 64; - else - length = 32; + length = sizeof(size_t) * 8; break; case 'Z': - if (sizeof(fz_off_t) >= 8) - length = 64; - else - length = 32; + length = sizeof(fz_off_t) * 8; break; } if (length != 0) |