From 29b658000f364d4d33a9eff4ac4eb51d9cbf638e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 2 Feb 2025 14:40:34 +0300 Subject: libtox: update to 0.2.20 --- protocols/Tox/libtox/src/third_party/cmp/cmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/libtox/src/third_party/cmp/cmp.c') diff --git a/protocols/Tox/libtox/src/third_party/cmp/cmp.c b/protocols/Tox/libtox/src/third_party/cmp/cmp.c index c312efd6c7..c11d23a8a3 100644 --- a/protocols/Tox/libtox/src/third_party/cmp/cmp.c +++ b/protocols/Tox/libtox/src/third_party/cmp/cmp.c @@ -865,7 +865,7 @@ bool cmp_write_pfix(cmp_ctx_t *ctx, uint8_t c) { } bool cmp_write_nfix(cmp_ctx_t *ctx, int8_t c) { - if (c >= -32 && c <= -1) + if (c >= -0x20 && c <= -1) return write_fixed_value(ctx, (uint8_t)c); ctx->error = CMP_ERROR_INPUT_VALUE_TOO_LARGE; @@ -875,7 +875,7 @@ bool cmp_write_nfix(cmp_ctx_t *ctx, int8_t c) { bool cmp_write_sfix(cmp_ctx_t *ctx, int8_t c) { if (c >= 0) return cmp_write_pfix(ctx, (uint8_t)c); - if (c >= -32 && c <= -1) + if (c >= -0x20 && c <= -1) return cmp_write_nfix(ctx, c); ctx->error = CMP_ERROR_INPUT_VALUE_TOO_LARGE; -- cgit v1.2.3