aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2014-10-03 10:16:09 -0700
committerJason Evans <jasone@canonware.com>2014-10-03 10:16:09 -0700
commit551ebc43647521bdd0bc78558b106762b3388928 (patch)
tree1cb827cc62f7e664604fe0de673d4006747df2fd /src/util.c
parentebbd0c91f0935421c04d05c8bdc6e38762a1e561 (diff)
downloadjemalloc-551ebc43647521bdd0bc78558b106762b3388928.tar.gz
Convert to uniform style: cond == false --> !cond
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util.c b/src/util.c
index 1717f08..bfd86af 100644
--- a/src/util.c
+++ b/src/util.c
@@ -266,7 +266,7 @@ d2s(intmax_t x, char sign, char *s, size_t *slen_p)
sign = '-';
switch (sign) {
case '-':
- if (neg == false)
+ if (!neg)
break;
/* Fall through. */
case ' ':
@@ -329,7 +329,7 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
/* Left padding. */ \
size_t pad_len = (width == -1) ? 0 : ((slen < (size_t)width) ? \
(size_t)width - slen : 0); \
- if (left_justify == false && pad_len != 0) { \
+ if (!left_justify && pad_len != 0) { \
size_t j; \
for (j = 0; j < pad_len; j++) \
APPEND_C(' '); \
@@ -406,19 +406,19 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
while (true) {
switch (*f) {
case '#':
- assert(alt_form == false);
+ assert(!alt_form);
alt_form = true;
break;
case '-':
- assert(left_justify == false);
+ assert(!left_justify);
left_justify = true;
break;
case ' ':
- assert(plus_space == false);
+ assert(!plus_space);
plus_space = true;
break;
case '+':
- assert(plus_plus == false);
+ assert(!plus_plus);
plus_plus = true;
break;
default: goto label_width;