blob: e001414c3245bf39ec9722ba1c5eac37da11c168 (
plain)
1 diff -up spamprobe-1.4d/src/database/WordArray.h.64bit spamprobe-1.4d/src/database/WordArray.h
2 --- spamprobe-1.4d/src/database/WordArray.h.64bit 2006-11-16 23:24:48.000000000 -0800
3 +++ spamprobe-1.4d/src/database/WordArray.h 2012-08-13 12:45:31.000000000 -0700
4 @@ -31,6 +31,8 @@
5 #ifndef _WordArray_h
6 #define _WordArray_h
7
8 +#include <stdint.h>
9 +
10 class WordData;
11
12 class WordArray
13 @@ -47,7 +49,7 @@ public:
14 FLAGS_SIZE = 2,
15 };
16
17 - typedef unsigned long key_t;
18 + typedef uint32_t key_t;
19
20 void reset(char *buffer,
21 int num_words);
22 diff -up spamprobe-1.4d/src/includes/hash.h.64bit spamprobe-1.4d/src/includes/hash.h
23 --- spamprobe-1.4d/src/includes/hash.h.64bit 2006-11-16 23:14:30.000000000 -0800
24 +++ spamprobe-1.4d/src/includes/hash.h 2012-08-13 12:45:31.000000000 -0700
25 @@ -10,11 +10,13 @@
26 #ifndef _jenkinshash_h
27 #define _jenkinshash_h
28
29 +#include <stdint.h>
30 +
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 -typedef unsigned long int ub4; /* unsigned 4-byte quantities */
36 +typedef uint32_t ub4; /* unsigned 4-byte quantities */
37 typedef unsigned char ub1; /* unsigned 1-byte quantities */
38
39 #define hashsize(n) ((ub4)1<<(n))
|