aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2010-08-09 18:55:37 +0200
committerMike Pall <mike>2010-08-09 18:55:37 +0200
commit65b8c36defce5a1691257711e25e42d17dbc30b9 (patch)
treebcd2ec9873c7b98f0de12009cf39ad4cf9292bd9 /src
parent0d6f6f3fa002373e160e70d00417dacba108296d (diff)
downloadluajit-65b8c36defce5a1691257711e25e42d17dbc30b9.tar.gz
luajit-65b8c36defce5a1691257711e25e42d17dbc30b9.tar.bz2
luajit-65b8c36defce5a1691257711e25e42d17dbc30b9.zip
Fix encoding of doubles for mixed-endian cross builds.
Diffstat (limited to 'src')
-rw-r--r--src/buildvm_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildvm_lib.c b/src/buildvm_lib.c
index c98d6312..ed55bf5d 100644
--- a/src/buildvm_lib.c
+++ b/src/buildvm_lib.c
@@ -198,7 +198,7 @@ static void memcpy_endian(void *dst, void *src, size_t n)
198 } else { 198 } else {
199 size_t i; 199 size_t i;
200 for (i = 0; i < n; i++) 200 for (i = 0; i < n; i++)
201 ((uint8_t *)dst)[i] = ((uint8_t *)src)[n-i]; 201 ((uint8_t *)dst)[i] = ((uint8_t *)src)[n-i-1];
202 } 202 }
203} 203}
204 204