summaryrefslogtreecommitdiff
path: root/libjava/stacktrace.cc
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-21 23:35:46 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-21 23:35:46 +0000
commit706d739076de738db545c6fe2444d1ea9b478787 (patch)
tree9ead2e8e37898df90435f5ee28bea96680c3469d /libjava/stacktrace.cc
parent484e85e1078cf2f8b8477ce9c279d84b1ffbdefb (diff)
downloadgcc-706d739076de738db545c6fe2444d1ea9b478787.tar.gz
PR libgcj/23507
* stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Fix typo in newLength assignment. Cast operands of compare to function pointer type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/stacktrace.cc')
-rw-r--r--libjava/stacktrace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/stacktrace.cc b/libjava/stacktrace.cc
index e0276788835..bc1935f1a75 100644
--- a/libjava/stacktrace.cc
+++ b/libjava/stacktrace.cc
@@ -102,7 +102,7 @@ _Jv_StackTrace::UnwindTraceFn (struct _Unwind_Context *context, void *state_ptr)
// Check if the trace buffer needs to be extended.
if (pos == state->length)
{
- int newLength = state->length *= 2;
+ int newLength = state->length * 2;
void *newFrames = _Jv_AllocBytes (newLength * sizeof(_Jv_StackFrame));
memcpy (newFrames, state->frames, state->length * sizeof(_Jv_StackFrame));
state->frames = (_Jv_StackFrame *) newFrames;
@@ -117,7 +117,7 @@ _Jv_StackTrace::UnwindTraceFn (struct _Unwind_Context *context, void *state_ptr)
// correspondance between call frames in the interpreted stack and occurances
// of _Jv_InterpMethod::run() on the native stack.
#ifdef INTERPRETER
- if (func_addr == (_Unwind_Ptr) &_Jv_InterpMethod::run)
+ if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
{
state->frames[pos].type = frame_interpreter;
state->frames[pos].interp.meth = state->interp_frame->self;