Skip to content

Commit

Permalink
fixes elm#1137
Browse files Browse the repository at this point in the history
Fix bug that causes infinite loop
  • Loading branch information
arowM authored and marc136 committed Nov 20, 2023
1 parent 0d928a1 commit b65f788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Elm/Kernel/String.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ var _String_foldl = F3(function(func, state, string)
var _String_foldr = F3(function(func, state, string)
{
var i = string.length;
while (i--)
while (i-- > 0)
{
var char = string[i];
var word = string.charCodeAt(i);
Expand Down Expand Up @@ -190,7 +190,7 @@ function _String_toLower(str)
var _String_any = F2(function(isGood, string)
{
var i = string.length;
while (i--)
while (i-- > 0)
{
var char = string[i];
var word = string.charCodeAt(i);
Expand All @@ -210,7 +210,7 @@ var _String_any = F2(function(isGood, string)
var _String_all = F2(function(isGood, string)
{
var i = string.length;
while (i--)
while (i-- > 0)
{
var char = string[i];
var word = string.charCodeAt(i);
Expand Down

0 comments on commit b65f788

Please sign in to comment.