From 395aba605163faea84adb3093a9d7de774163319 Mon Sep 17 00:00:00 2001 From: "colin%theblakes.com" Date: Sat, 18 Sep 1999 00:03:28 +0000 Subject: [PATCH] Order of evaluation is undefined, hence two ++ in one statement is bad --- js/src/jsregexp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/src/jsregexp.c b/js/src/jsregexp.c index 1894e9bdbcce..a047bf839881 100644 --- a/js/src/jsregexp.c +++ b/js/src/jsregexp.c @@ -985,8 +985,9 @@ do_octal: && cp[2] >= '0' && cp[2] <= '9') { ren = NewRENode(state, REOP_FLAT1, NULL); c = 64 * (uintN)JS7_UNDEC(c) - + 8 * (uintN)JS7_UNDEC(*++cp) - + (uintN)JS7_UNDEC(*++cp); + + 8 * (uintN)JS7_UNDEC(cp[1]) + + (uintN)JS7_UNDEC(cp[2]); + cp += 2; } else /*ZeroToThree OctalDigit lookahead != OctalDigit */ goto twodigitescape;