@@ -3173,8 +3173,7 @@ protected Object stringAwkSplitAsciiOnly(Object string, int limit, Object block,
3173
3173
findingSubstringEnd = false ;
3174
3174
3175
3175
final RubyString substring = createSubString (substringNode , tstring , encoding ,
3176
- substringStart ,
3177
- i - substringStart );
3176
+ substringStart , i - substringStart );
3178
3177
ret = addSubstring (
3179
3178
ret ,
3180
3179
storeIndex ++,
@@ -3245,12 +3244,12 @@ protected Object stringAwkSplit(Object string, int limit, Object block,
3245
3244
var iterator = createCodePointIteratorNode .execute (tstring , tencoding , ErrorHandling .RETURN_NEGATIVE );
3246
3245
3247
3246
boolean skip = true ;
3248
- int e = 0 , b = 0 , n = 0 ;
3247
+ int e = 0 , b = 0 , iterations = 0 ;
3249
3248
try {
3250
3249
while (loopProfile .inject (iterator .hasNext ())) {
3251
3250
int c = nextNode .execute (iterator );
3252
3251
int p = iterator .getByteIndex ();
3253
- n ++;
3252
+ iterations ++;
3254
3253
3255
3254
if (skip ) {
3256
3255
if (StringSupport .isAsciiSpace (c )) {
@@ -3283,7 +3282,7 @@ protected Object stringAwkSplit(Object string, int limit, Object block,
3283
3282
}
3284
3283
}
3285
3284
} finally {
3286
- profileAndReportLoopCount (loopProfile , n );
3285
+ profileAndReportLoopCount (loopProfile , iterations );
3287
3286
}
3288
3287
3289
3288
if (trailingSubstringProfile .profile (len > 0 && (limitPositive || len > b || limit < 0 ))) {
0 commit comments