[Http-crcsync] crccache ready for some testing I think
Rusty Russell
rusty at rustcorp.com.au
Tue Mar 31 00:06:55 EDT 2009
On Tuesday 31 March 2009 14:24:37 Rusty Russell wrote:
> On Tuesday 31 March 2009 07:58:08 Alex Wulms wrote:
> > Rusty,
> >
> > Attached test program crashes on my PC with the latest libcrc. Am I doing
> > something wrong?
>
> How weird. It works fine on 32 bit.
>
> Fortunately, the testsuite *also* fails on 64 bit.
Fix committed. long vs unsigned int issue.
=== modified file 'ccan/crcsync/crcsync.c'
--- ccan/crcsync/crcsync.c 2009-03-30 00:08:38 +0000
+++ ccan/crcsync/crcsync.c 2009-03-31 04:04:50 +0000
@@ -268,7 +268,7 @@
}
/* 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;
More information about the Http-crcsync
mailing list