mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed int16 CheckedMul
This commit is contained in:
parent
3b662a9d74
commit
ef9464900e
1 changed files with 1 additions and 1 deletions
|
@ -1648,7 +1648,7 @@ int8 BfIRBuilder::CheckedMul(int8 a, int8 b)
|
|||
|
||||
int16 BfIRBuilder::CheckedMul(int16 a, int16 b)
|
||||
{
|
||||
int result = a + b;
|
||||
int result = a * b;
|
||||
if ((result > 0x7FFF) || (result < -0x8000))
|
||||
OpFailed();
|
||||
return (int16)result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue