Skip to content

Commit b3254af

Browse files
Deryuginalpinskiy
authored andcommitted
Fix pack32() signature
1 parent 6692a84 commit b3254af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

statshouse.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,9 @@ class TransportUDPBase {
406406
buf[7] = char(val >> 56);
407407
}
408408
static bool enoughSpace(const char * begin, const char * end, size_t req) { return begin + req <= end; }
409-
static char * pack32(char * begin, const char * end, size_t v) {
409+
static char *pack32(char *begin, const char *end, uint32_t v) {
410410
if (STATSHOUSE_UNLIKELY(!enoughSpace(begin, end, 4))) { return nullptr; }
411-
put32(begin, uint32_t(v));
411+
put32(begin, v);
412412
return begin + 4;
413413
}
414414
static char * pack64(char * begin, const char * end, uint64_t v) {

0 commit comments

Comments
 (0)