rem: var x = new Array(nr); for (var i=0; i<nr; i++) { if (c1 >= this.stories.count()) x[i] = this.allcomments.get(c2++); 
add: var cnt = 0; while (cnt < nr) { if (c1 >= this.allstories.count()) x[cnt] = this.allcomments.get(c2++); 
context: function history_macro(param) {   res.write(param.prefix)   var len1 = this.stories.count();   var len2 = this.allcomments.count();   var nr = (param.show) ? param.show : 5;   if (nr > len1+len2) nr = len1+len2;   var c1 = 0;   var c2 = 0;   var x = new Array(nr);   for (var i=0; i<nr; i++) {      if (c1 >= this.stories.count())         x[i] = this.allcomments.get(c2++);      else if (c2 >= this.allcomments.count())         x[i] = this.stories.get(c1++);      else {         var t1 = (this.stories.get(c1).modifytime) ? this.stories.get(c1).modifytime : this.stories.get(c1).createtime;         var t2 = (this.allcomments.get(c2).modifytime) ? this.allcomments.get(c2).modifytime : this.allcomments.get(c2).createtime;         if (t2 > t1)            x[i] = this.allcomments.get(c2++);         else            x[i] = this.stories.get(c1++);      }   }   for (var j in x) {      if (x[j].isOnline()) x[j].renderSkin("historyview");   }   res.write(param.suffix);}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/01649458948ca65c88a5a9b895f47c56af1abd7f/macros.js/buggy/code/Site/macros.js