Skip to content

Commit

Permalink
Updated sqids ext lib
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed May 27, 2024
1 parent 1f06210 commit bdeca61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/sqids.pas
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function TSqids.ToNumber(AId: string; AAlphabet: string): TNumber;
L := Length(AAlphabet);

for C in AId do
Result := Result * L + TNumber(Pos(C, AAlphabet)) - 1;
Result := Result * L + (TNumber(Pos(C, AAlphabet)) - 1);
end;

function TSqids.IsBlocked(AId: string): Boolean;
Expand Down

0 comments on commit bdeca61

Please sign in to comment.