aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorMikael Pettersson <[email protected]>2016-04-24 10:58:11 +0200
committerMikael Pettersson <[email protected]>2016-05-05 12:50:14 +0200
commit98855709622835602b4c0a2d37e3f06ceb003af7 (patch)
tree5b6ee53de51a13128d994e05c9b5272d3deffa85 /erts
parenta152a8a4e6df5fca0ca6fb0a62ac8fea41b99571 (diff)
downloadotp-98855709622835602b4c0a2d37e3f06ceb003af7.tar.gz
otp-98855709622835602b4c0a2d37e3f06ceb003af7.tar.bz2
otp-98855709622835602b4c0a2d37e3f06ceb003af7.zip
erts_new_mso_binary(): do not truncate len
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/binary.c2
-rw-r--r--erts/emulator/beam/global.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/binary.c b/erts/emulator/beam/binary.c
index cfd8fbe2f5..071a356260 100644
--- a/erts/emulator/beam/binary.c
+++ b/erts/emulator/beam/binary.c
@@ -117,7 +117,7 @@ new_binary(Process *p, byte *buf, Uint len)
* When heap binary is not desired...
*/
-Eterm erts_new_mso_binary(Process *p, byte *buf, int len)
+Eterm erts_new_mso_binary(Process *p, byte *buf, Uint len)
{
ProcBin* pb;
Binary* bptr;
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index a7bc990deb..c8cf7c6191 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -946,7 +946,7 @@ ERTS_GLB_INLINE Eterm erts_equeue_get(ErtsEQueue *q) {
void erts_emasculate_writable_binary(ProcBin* pb);
Eterm erts_new_heap_binary(Process *p, byte *buf, int len, byte** datap);
-Eterm erts_new_mso_binary(Process*, byte*, int);
+Eterm erts_new_mso_binary(Process*, byte*, Uint);
Eterm new_binary(Process*, byte*, Uint);
Eterm erts_realloc_binary(Eterm bin, size_t size);