aboutsummaryrefslogtreecommitdiffstats
path: root/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/printf.c b/printf.c
index ec1f2ef..e5e3a36 100644
--- a/printf.c
+++ b/printf.c
@@ -425,9 +425,9 @@ static size_t _vsnprintf(char* buffer, size_t buffer_len, const char* format, va
flags |= FLAGS_LONG_LONG;
format++;
}
- if ((*format == 'z')) {
- flags |= (sizeof(size_t) == 8 ? FLAGS_LONG_LONG : FLAGS_LONG);
- format++;
+ if (*format == 'z') {
+ flags |= (sizeof(size_t) == sizeof(long) ? FLAGS_LONG : FLAGS_LONG_LONG);
+ format++;
}
// evaluate specifier