# HG changeset patch # User reimar # Date 1160317947 0 # Node ID f48a01a0d3dcea320144800e9f779462285e4dde # Parent b6f6bf155661d8a2758786eda4ec5445b2629dbf Avoid void *-arithmetic diff -r b6f6bf155661 -r f48a01a0d3dc lzo.c --- a/lzo.c Sun Oct 08 13:55:02 2006 +0000 +++ b/lzo.c Sun Oct 08 14:32:27 2006 +0000 @@ -166,9 +166,9 @@ int x; LZOContext c; c.in = in; - c.in_end = in + *inlen; + c.in_end = (uint8_t *)in + *inlen; c.out = c.out_start = out; - c.out_end = out + * outlen; + c.out_end = (uint8_t *)out + * outlen; c.error = 0; x = get_byte(&c); if (x > 17) {