[openrtm-commit:00376] r2226 - trunk/OpenRTM-aist/src/lib/coil/common
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 8月 25日 (木) 01:32:56 JST
Author: n-ando
Date: 2011-08-25 01:32:56 +0900 (Thu, 25 Aug 2011)
New Revision: 2226
Modified:
trunk/OpenRTM-aist/src/lib/coil/common/crc.cpp
Log:
int->size_t in for
Modified: trunk/OpenRTM-aist/src/lib/coil/common/crc.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/coil/common/crc.cpp 2011-08-24 16:31:43 UTC (rev 2225)
+++ trunk/OpenRTM-aist/src/lib/coil/common/crc.cpp 2011-08-24 16:32:56 UTC (rev 2226)
@@ -85,7 +85,7 @@
0x6E17, 0x7E36, 0x4E55, 0x5E74, 0x2E93, 0x3EB2, 0x0ED1, 0x1EF0,
};
unsigned short crc16(0xffff);
- for (int i(0); i < len; ++i)
+ for (size_t i(0); i < len; ++i)
{
crc16 = crc16tab[(crc16 >> 8) ^ str[i]] ^ (crc16 << 8);
}
openrtm-commit メーリングリストの案内