Package: clearsilver / 0.10.5-4

fix_64bit_crc_test.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
The CRC tests fail on 64bit systems.
A patch for this failure was published by Thomas Regner:
http://tech.groups.yahoo.com/group/ClearSilver/message/1177

Clearsilver's main developer (Brandon Long) appreciated the patch but did not
commit it to the code repository, yet:
http://tech.groups.yahoo.com/group/ClearSilver/message/1178
--- a/cs/csparse.c
+++ b/cs/csparse.c
@@ -3717,7 +3717,7 @@
   if (val.op_type & (CS_TYPE_VAR | CS_TYPE_STRING))
   {
     char *s = arg_eval(parse, &val);
-    if (s) result->n = ne_crc((unsigned char *)s, strlen(s));
+    if (s) result->n = (INT32) ne_crc((unsigned char *)s, strlen(s));
   }
   if (val.alloc) free(val.s);
   return STATUS_OK;