Fix stacktrace when building with MSVC

This commit is contained in:
Gernot Kvas 2012-08-26 17:27:22 +02:00 committed by Joel Dice
parent 1f1c3c4c41
commit c2b53497ab

View File

@ -278,7 +278,7 @@ makeStackTraceElement(Thread* t, object e)
THREAD_RUNTIME_ARRAY(t, char, s, byteArrayLength(t, class_)); THREAD_RUNTIME_ARRAY(t, char, s, byteArrayLength(t, class_));
replace('/', '.', RUNTIME_ARRAY_BODY(s), replace('/', '.', RUNTIME_ARRAY_BODY(s),
reinterpret_cast<char*>(&byteArrayBody(t, class_, 0))); reinterpret_cast<char*>(&byteArrayBody(t, class_, 0)));
class_ = makeString(t, "%s", s); class_ = makeString(t, "%s", RUNTIME_ARRAY_BODY(s));
object method = methodName(t, traceElementMethod(t, e)); object method = methodName(t, traceElementMethod(t, e));
PROTECT(t, method); PROTECT(t, method);