Skip to content

Commit

Permalink
Update float.cpp
Browse files Browse the repository at this point in the history
changed the y comparison check
  • Loading branch information
trajore authored Jan 2, 2024
1 parent 7376d28 commit a6b4cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/llama/float.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ GroupElement adjust(GroupElement m, GroupElement e)
}
GroupElement pow_helper(int scale,GroupElement y)
{
if (0<=y<=scale)
if (y >= 0 && y<= scale)
{
return (1ULL<<y);
}
Expand Down

0 comments on commit a6b4cb3

Please sign in to comment.