diff options
author | Doug Evans <dje@google.com> | 2009-08-13 22:35:29 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-08-13 22:35:29 +0000 |
commit | 6e0a4fbcdfcd027aa1169e151334bf305f4ccacd (patch) | |
tree | 02871cf2e15732fe681800a3b5308dad1c3b7e50 /gdb | |
parent | 4e7a5ef5a84e2f120a52def047ef671f8dbd7954 (diff) | |
download | gdb-6e0a4fbcdfcd027aa1169e151334bf305f4ccacd.zip gdb-6e0a4fbcdfcd027aa1169e151334bf305f4ccacd.tar.gz gdb-6e0a4fbcdfcd027aa1169e151334bf305f4ccacd.tar.bz2 |
* utils.c (gnu_debuglink_crc32): Store crc32_table as unsigned int
instead of unsigned long.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/utils.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bdcafe6..ee829d1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-08-13 Doug Evans <dje@google.com> + + * utils.c (gnu_debuglink_crc32): Store crc32_table as unsigned int + instead of unsigned long. + 2009-08-13 Tom Tromey <tromey@redhat.com> * varobj.c (update_dynamic_varobj_children): Don't use diff --git a/gdb/utils.c b/gdb/utils.c index a266b02..59d6ff6 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3307,7 +3307,7 @@ xfullpath (const char *filename) unsigned long gnu_debuglink_crc32 (unsigned long crc, unsigned char *buf, size_t len) { - static const unsigned long crc32_table[256] = { + static const unsigned int crc32_table[256] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, |