aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-04 11:32:15 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-04 11:32:15 -0500
commit28e30830755758d13458c05ebe2a8db5dc9f43a0 (patch)
treee85432610680e58fda8c0f9971943483a73144ee /src
parent561145ed1f4f281ce47f3daaf0b1ec033c0b0402 (diff)
Build with GNU89 standard for greater compatibility.
Diffstat (limited to 'src')
-rw-r--r--src/bitfield/8byte.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bitfield/8byte.c b/src/bitfield/8byte.c
index 5f310425..72f7e32b 100644
--- a/src/bitfield/8byte.c
+++ b/src/bitfield/8byte.c
@@ -36,7 +36,8 @@ uint64_t eightbyte_get_bitfield(uint64_t source, const uint16_t offset,
uint64_t ret = bytes[startByte];
if(startByte != endByte) {
// The lowest byte address contains the most significant bit.
- for(uint8_t i = startByte + 1; i <= endByte; i++) {
+ uint8_t i;
+ for(i = startByte + 1; i <= endByte; i++) {
ret = ret << 8;
ret = ret | bytes[i];
}