From 0aff874caec82d8188057d9566e1292678d7a78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Wed, 25 Sep 2019 18:25:46 +0800 Subject: Fix digit count logics --- request.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3