aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2011-11-11 15:58:42 +0100
committerPatrik Nyblom <[email protected]>2011-11-16 17:09:35 +0100
commit08d4822dd22465da4a452484780b285a93192fce (patch)
tree362e8a8326e29da7ff211e2bd415bebf46eb8b58 /erts/emulator/beam/utils.c
parent95d12d7a893fd940253b62906e12e027a18e126a (diff)
downloadotp-08d4822dd22465da4a452484780b285a93192fce.tar.gz
otp-08d4822dd22465da4a452484780b285a93192fce.tar.bz2
otp-08d4822dd22465da4a452484780b285a93192fce.zip
Remove remaining gcc 4.6 assigned-but-not-used warnings from erts
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r--erts/emulator/beam/utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c
index 1bd178f280..e4ad7dcb24 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -2955,14 +2955,14 @@ Eterm
buf_to_intlist(Eterm** hpp, char *buf, int len, Eterm tail)
{
Eterm* hp = *hpp;
+ int i = len - 1;
- buf += (len-1);
- while(len > 0) {
- tail = CONS(hp, make_small((byte)*buf), tail);
+ while(i >= 0) {
+ tail = CONS(hp, make_small((Uint)(byte)buf[i]), tail);
hp += 2;
- buf--;
- len--;
+ --i;
}
+
*hpp = hp;
return tail;
}