Browse Source

Merge pull request #1511 from svaarala/fix-msvc-cast-warning

Fix a harmless MSVC cast warning
pull/1512/head
Sami Vaarala 8 years ago
committed by GitHub
parent
commit
e5fe166944
  1. 2
      RELEASES.rst
  2. 2
      src-input/duk_error_augment.c

2
RELEASES.rst

@ -2841,6 +2841,8 @@ Planned
* Fix internal debug print opcode name list which was out of sync with previous
changes (GH-1509)
* Fix MSVC cast warning in error augmentation code (GH-1511)
* Simplify handling of ENDFIN opcode a bit (GH-1508)
* Internal change: set REACHABLE for all READONLY objects (relevant when

2
src-input/duk_error_augment.c

@ -231,7 +231,7 @@ DUK_LOCAL void duk__add_traceback(duk_hthread *thr, duk_hthread *thr_callstack,
DUK_ASSERT(thr_callstack->callstack_top <= DUK_INT_MAX); /* callstack limits */
depth = DUK_USE_TRACEBACK_DEPTH;
if (depth > thr_callstack->callstack_top) {
depth = thr_callstack->callstack_top;
depth = (duk_small_uint_t) thr_callstack->callstack_top;
}
for (act = thr_callstack->callstack_curr; depth-- > 0; act = act->parent) {
duk_uint32_t pc;

Loading…
Cancel
Save