Skip to content

Commit

Permalink
codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
pramothragavan committed Feb 8, 2025
1 parent 66ddf5b commit 4c0f0da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gap/io.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ end);

BindGlobal("DIGRAPHS_readinteger",
function(r, Stream)
local char, ans, minus;
local char, res, minus;
char := DIGRAPHS_GETNWL(r, Stream);

if not IsDigitChar(char) and char <> '-' and char <> '+' then
Expand All @@ -1434,15 +1434,15 @@ function(r, Stream)

minus := char = '-';
if char = '-' or char = '+' then
ans := 0;
res := 0;
else
ans := Int([char]);
res := Int([char]);
fi;

char := Stream.GetChar(r);

while IsDigitChar(char) do
ans := ans * 10 + Int([char]);
res := res * 10 + Int([char]);
char := Stream.GetChar(r);
od;

Expand All @@ -1451,10 +1451,10 @@ function(r, Stream)
fi;

if minus then
ans := -ans;
res := -res;
fi;

return ans;
return res;
end);

BindGlobal("DIGRAPHS_readgraph",
Expand Down

0 comments on commit 4c0f0da

Please sign in to comment.