Skip to content

Commit

Permalink
core/math/fixed: fix BrFixedDiv()
Browse files Browse the repository at this point in the history
  • Loading branch information
vs49688 committed May 27, 2024
1 parent bc4cbea commit 0fb725b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/math/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ br_fixed_ls BR_PUBLIC_ENTRY BrFixedDiv(br_fixed_ls numerator, br_fixed_ls denomi
if(denominator == 0)
return 0;

return (br_fixed_ls)(((br_uint_64)numerator << 16) / denominator);
return (br_fixed_ls)(((br_int_64)numerator << 16) / denominator);
}

br_fixed_ls BR_PUBLIC_ENTRY BrFixedRcp(br_fixed_ls a)
Expand Down

0 comments on commit 0fb725b

Please sign in to comment.