aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/loadstor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/loadstor.h')
-rw-r--r--src/utils/loadstor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/loadstor.h b/src/utils/loadstor.h
index 047e9c067..29e00592a 100644
--- a/src/utils/loadstor.h
+++ b/src/utils/loadstor.h
@@ -101,7 +101,7 @@ inline T load_be(const byte in[], size_t off)
{
in += off * sizeof(T);
T out = 0;
- for(size_t i = 0; i != sizeof(T); i++)
+ for(size_t i = 0; i != sizeof(T); ++i)
out = (out << 8) | in[i];
return out;
}
@@ -117,7 +117,7 @@ inline T load_le(const byte in[], size_t off)
{
in += off * sizeof(T);
T out = 0;
- for(size_t i = 0; i != sizeof(T); i++)
+ for(size_t i = 0; i != sizeof(T); ++i)
out = (out << 8) | in[sizeof(T)-1-i];
return out;
}