summaryrefslogtreecommitdiffhomepage
path: root/src/crc.c
diff options
context:
space:
mode:
authorYuichiro MASUI <[email protected]>2013-03-08 07:55:54 -0800
committerYuichiro MASUI <[email protected]>2013-03-08 07:55:54 -0800
commit974febd315a6520184f95cb50a7c2b46e4582002 (patch)
tree45468abc1e663bf841dff67cfb819ed0d5e6b475 /src/crc.c
parentd1a4958bfc9685a41379557a752ebf901ebe419d (diff)
parent065494887d92c085a78ca3624e26659acc2bfdfc (diff)
downloadmruby-974febd315a6520184f95cb50a7c2b46e4582002.tar.gz
mruby-974febd315a6520184f95cb50a7c2b46e4582002.zip
Merge pull request #1 from monaka/pr-new-mrb_format
Patches to new_mrb_format
Diffstat (limited to 'src/crc.c')
-rw-r--r--src/crc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crc.c b/src/crc.c
index 70fa60dfb..db852f6cb 100644
--- a/src/crc.c
+++ b/src/crc.c
@@ -18,9 +18,10 @@
#define CRC_CARRY_BIT (1 << 24)
uint16_t
-calc_crc_16_ccitt(const uint8_t *src, uint32_t nbytes, uint16_t crc)
+calc_crc_16_ccitt(const uint8_t *src, size_t nbytes, uint16_t crc)
{
- uint32_t ibyte, ibit;
+ size_t ibyte;
+ uint32_t ibit;
uint32_t crcwk = crc << 8;
for (ibyte = 0; ibyte < nbytes; ibyte++) {