Commit cd6ba351 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

jscript: Avoid using long.

parent 5ee89aad
...@@ -1977,7 +1977,7 @@ PushBackTrackState(REGlobalData *gData, REOp op, ...@@ -1977,7 +1977,7 @@ PushBackTrackState(REGlobalData *gData, REOp op,
ptrdiff_t btincr = ((char *)result + sz) - ptrdiff_t btincr = ((char *)result + sz) -
((char *)gData->backTrackStack + btsize); ((char *)gData->backTrackStack + btsize);
TRACE("\tBT_Push: %lu,%lu\n", (unsigned long) parenIndex, (unsigned long) parenCount); TRACE("\tBT_Push: %lu,%lu\n", (ULONG_PTR)parenIndex, (ULONG_PTR)parenCount);
JS_COUNT_OPERATION(gData->cx, JSOW_JUMP * (1 + parenCount)); JS_COUNT_OPERATION(gData->cx, JSOW_JUMP * (1 + parenCount));
if (btincr > 0) { if (btincr > 0) {
...@@ -2729,7 +2729,7 @@ ExecuteREBytecode(REGlobalData *gData, REMatchState *x) ...@@ -2729,7 +2729,7 @@ ExecuteREBytecode(REGlobalData *gData, REMatchState *x)
case REOP_LPAREN: case REOP_LPAREN:
pc = ReadCompactIndex(pc, &parenIndex); pc = ReadCompactIndex(pc, &parenIndex);
TRACE("[ %lu ]\n", (unsigned long) parenIndex); TRACE("[ %lu ]\n", (ULONG_PTR)parenIndex);
assert(parenIndex < gData->regexp->parenCount); assert(parenIndex < gData->regexp->parenCount);
if (parenIndex + 1 > parenSoFar) if (parenIndex + 1 > parenSoFar)
parenSoFar = parenIndex + 1; parenSoFar = parenIndex + 1;
...@@ -3093,8 +3093,8 @@ ExecuteREBytecode(REGlobalData *gData, REMatchState *x) ...@@ -3093,8 +3093,8 @@ ExecuteREBytecode(REGlobalData *gData, REMatchState *x)
} }
TRACE("\tBT_Pop: %ld,%ld\n", TRACE("\tBT_Pop: %ld,%ld\n",
(unsigned long) backTrackData->parenIndex, (ULONG_PTR)backTrackData->parenIndex,
(unsigned long) backTrackData->parenCount); (ULONG_PTR)backTrackData->parenCount);
continue; continue;
} }
x = result; x = result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment