Skip to content

Commit b0c4429

Browse files
committed
use 1/0 instead of true/false
1 parent 86260c7 commit b0c4429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msgpack/unpack_template.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ static inline int unpack_execute(bool construct, unpack_context* ctx, const char
398398
#undef start_container
399399

400400
static int unpack_construct(unpack_context *ctx, const char *data, Py_ssize_t len, Py_ssize_t *off) {
401-
return unpack_execute(true, ctx, data, len, off);
401+
return unpack_execute(1, ctx, data, len, off);
402402
}
403403
static int unpack_skip(unpack_context *ctx, const char *data, Py_ssize_t len, Py_ssize_t *off) {
404-
return unpack_execute(false, ctx, data, len, off);
404+
return unpack_execute(0, ctx, data, len, off);
405405
}
406406

407407
#define unpack_container_header read_array_header

0 commit comments

Comments
 (0)