From 3f039864d1560a5aa570c6f4a07160761034b0d7 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 29 Aug 2012 12:10:31 -0600 Subject: [PATCH] fix memcpy argument order bug in jvmConstantPoolGetDoubleAt --- src/classpath-openjdk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index 844739e3e3..97c5a3372e 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -4684,7 +4684,7 @@ jvmConstantPoolGetDoubleAt(Thread* t, uintptr_t* arguments) jobject pool = reinterpret_cast(arguments[0]); jint index = arguments[1]; - double v; memcpy(&singletonValue(t, *pool, index - 1), &v, 8); + double v; memcpy(&v, &singletonValue(t, *pool, index - 1), 8); return doubleToBits(v); }