diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-31 14:35:04 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-31 14:35:04 +1030 |
commit | 4df5a75fd90bfcd42dedb3bfa83e85b57fd9f63c (patch) | |
tree | 9e0ce08c4cc4d8a730baa541ce029f76090eebee | |
parent | 686061a501169c08d35708010f1c7c7b0eb13d77 (diff) |
64-bit fix (reported by Alex Wulms)
-rw-r--r-- | ccan/crcsync/crcsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/crcsync/crcsync.c b/ccan/crcsync/crcsync.c index ccc648a5..87f513ea 100644 --- a/ccan/crcsync/crcsync.c +++ b/ccan/crcsync/crcsync.c @@ -268,7 +268,7 @@ long crc_read_flush(struct crc_context *ctx) } /* 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->literal_bytes -= final; return ret; |