aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2010-06-21 11:38:25 +0200
committerSverker Eriksson <[email protected]>2010-06-30 19:42:57 +0200
commit32494dbba73ef1668555b793ead34f94e8bb792b (patch)
treebe507bb0cee9ed4955f1a3c003cb5731a533e4de /erts/emulator/beam/utils.c
parent5ef0b06ddbaa48499394c30d56fc81e7162abf50 (diff)
downloadotp-32494dbba73ef1668555b793ead34f94e8bb792b.tar.gz
otp-32494dbba73ef1668555b793ead34f94e8bb792b.tar.bz2
otp-32494dbba73ef1668555b793ead34f94e8bb792b.zip
Fix bug that caused faulty 64-bit integers from drivers.
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r--erts/emulator/beam/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c
index da6f9ed12f..b8d407f5e5 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -409,7 +409,7 @@ erts_bld_uint64(Uint **hpp, Uint *szp, Uint64 ui64)
}
else {
if (szp)
- *szp = ERTS_UINT64_HEAP_SIZE(ui64);
+ *szp += ERTS_UINT64_HEAP_SIZE(ui64);
if (hpp)
res = erts_uint64_to_big(ui64, hpp);
}
@@ -426,7 +426,7 @@ erts_bld_sint64(Uint **hpp, Uint *szp, Sint64 si64)
}
else {
if (szp)
- *szp = ERTS_SINT64_HEAP_SIZE(si64);
+ *szp += ERTS_SINT64_HEAP_SIZE(si64);
if (hpp)
res = erts_sint64_to_big(si64, hpp);
}