diff options
author | Patrik Nyblom <[email protected]> | 2011-11-11 15:58:42 +0100 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2011-11-16 17:09:35 +0100 |
commit | 08d4822dd22465da4a452484780b285a93192fce (patch) | |
tree | 362e8a8326e29da7ff211e2bd415bebf46eb8b58 /erts/emulator/beam/utils.c | |
parent | 95d12d7a893fd940253b62906e12e027a18e126a (diff) | |
download | otp-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.c | 10 |
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; } |