aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanny/MADE <nerurkar@made-apps.biz>2013-06-16 16:39:09 +0200
committermanny/MADE <nerurkar@made-apps.biz>2013-06-18 13:59:56 +0200
commita04b53740e3de7cc8b4c4b9d6fd9fd903c0f97aa (patch)
treeccc7dc341ea13f66b7d0cad0f864a826d9600aec
parentc158595be87cdebfb90d5c1bc272673be9cc06e7 (diff)
BUGFIX: lists cannot be llvm_va_copy was broken, didn't copy list offset
-rw-r--r--src/library.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 151cf3e5..d6e6879b 100644
--- a/src/library.js
+++ b/src/library.js
@@ -5008,6 +5008,7 @@ LibraryManager.library = {
llvm_va_copy: function(ppdest, ppsrc) {
{{{ makeCopyValues('ppdest', 'ppsrc', Runtime.QUANTUM_SIZE, 'null', null, 1) }}};
+ {{{ makeCopyValues('(ppdest+4)', '(ppsrc+4)', Runtime.QUANTUM_SIZE, 'null', null, 1) }}};
/* Alternate implementation that copies the actual DATA; it assumes the va_list is prefixed by its size
var psrc = IHEAP[ppsrc]-1;
var num = IHEAP[psrc]; // right before the data, is the number of (flattened) values