summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-25 18:25:46 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-25 18:25:46 +0800
commit0aff874caec82d8188057d9566e1292678d7a78b (patch)
treef393278aca1ef3b04ef329654d0a3f9798f6fdf6
parent63bf675b212affab4960b26324288b2fc2b57b21 (diff)
Fix digit count logics
-rw-r--r--request.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/request.h b/request.h
index 9eb914c..b8edc81 100644
--- a/request.h
+++ b/request.h
@@ -33,7 +33,7 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *)
ival = va_arg(ap, unsigned int);
do {
length++;
- } while (ival / 10);
+ } while ((ival /= 10));
length -= 2;
break;
default: