Commit 4df5a75f authored by Rusty Russell's avatar Rusty Russell

64-bit fix (reported by Alex Wulms)

parent 686061a5
...@@ -268,7 +268,7 @@ long crc_read_flush(struct crc_context *ctx) ...@@ -268,7 +268,7 @@ long crc_read_flush(struct crc_context *ctx)
} }
/* We matched (some of) what's left. */ /* We matched (some of) what's left. */
ret = -(ctx->num_crcs-1)-1; ret = -((int)ctx->num_crcs-1)-1;
ctx->buffer_start += final; ctx->buffer_start += final;
ctx->literal_bytes -= final; ctx->literal_bytes -= final;
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment