summaryrefslogtreecommitdiff
path: root/protocols/Tox/libtox/src/third_party/cmp/cmp.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-02-02 14:40:34 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-02-02 14:40:34 +0300
commit29b658000f364d4d33a9eff4ac4eb51d9cbf638e (patch)
tree33c2361796449df67afbb545a8ac571e96d47d3d /protocols/Tox/libtox/src/third_party/cmp/cmp.c
parent8b85a1d4242aadcdcb682a90059061cc72a868c0 (diff)
libtox: update to 0.2.20
Diffstat (limited to 'protocols/Tox/libtox/src/third_party/cmp/cmp.c')
-rw-r--r--protocols/Tox/libtox/src/third_party/cmp/cmp.c4
1 files changed, 2 insertions, 2 deletions
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;