summaryrefslogtreecommitdiffstats
path: root/src/crc.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-10-25 18:26:16 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-10-25 18:26:16 +0100
commit5156d5b462f00da3830dc6314dd74feda37f1257 (patch)
tree85ff8a96aeab5a1cdd6054f6be8a53d12d401788 /src/crc.c
parent4a75ec8effe3e4878e7710a1322d8ed86f059c08 (diff)
Code cleanup
Diffstat (limited to 'src/crc.c')
-rw-r--r--src/crc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crc.c b/src/crc.c
index b1faa6c..0d1b268 100644
--- a/src/crc.c
+++ b/src/crc.c
@@ -95,7 +95,7 @@ unsigned int get_crc32(const void*buf, const unsigned int len, const uint32_t se
{
crc32val = crc32_tab[(crc32val ^ s[i]) & 0xff] ^ (crc32val >> 8);
}
- return crc32val;
+ return (unsigned int)crc32val;
}
#if 0