Skip to content

Commit

Permalink
toxcore amalgamation
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Nov 19, 2024
1 parent 4f850d2 commit 1784d5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toxcore/toxcore_amalgamation.c
Original file line number Diff line number Diff line change
Expand Up @@ -85147,7 +85147,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;
Expand All @@ -85157,7 +85157,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;
Expand Down

0 comments on commit 1784d5f

Please sign in to comment.