diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-30 10:51:34 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-30 10:51:34 +0800 |
commit | 7180c051d619f0605f2c45929eb516d28bcb709f (patch) | |
tree | 243219ac46264f10720dfa6fc22f2304f321f353 /request.h | |
parent | 739bcbbd83115cb8cf3f5b60fd7e73056a0c7293 (diff) |
The decimal notations used so far are unsigned integers
Diffstat (limited to 'request.h')
-rw-r--r-- | request.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,7 +29,7 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *) sval = va_arg(ap, char *); length += strlen(sval) - 2; break; - case 'd': + case 'u': ival = va_arg(ap, unsigned int); do { length++; @@ -54,9 +54,9 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *) sval = va_arg(ap, char *); strcat(url, sval); break; - case 'd': + case 'u': ival = va_arg(ap, unsigned int); - sprintf(url, "%s%d", url, ival); + sprintf(url, "%s%u", url, ival); break; default: break; |