shithub: libmujs

Download patch

ref: f725c8cf9285dd3775292d2c177c8191b07afb46
parent: f0c795771d30ad23c29bc499ae5ac2de63a1d2a7
author: Tor Andersson <tor@ccxvii.net>
date: Wed Feb 5 01:00:51 EST 2014

Fix bug in js_rot.

--- a/jsrun.c
+++ b/jsrun.c
@@ -308,7 +308,7 @@
 {
 	int i;
 	js_Value tmp = STACK[TOP-1];
-	for (i = 1; i <= n; ++i)
+	for (i = 1; i < n; ++i)
 		STACK[TOP-i] = STACK[TOP-i-1];
 	STACK[TOP-i] = tmp;
 }