diff --git a/BESM6/besm6_arith.c b/BESM6/besm6_arith.c index 948a6024..175f68da 100644 --- a/BESM6/besm6_arith.c +++ b/BESM6/besm6_arith.c @@ -364,7 +364,7 @@ void besm6_multiply (t_value val) acc.mantissa = l + ahi * bhi; - if (neg) { + if (neg && (acc.mantissa || mr)) { mr = (~mr & BITS40) + 1; acc.mantissa = ((~acc.mantissa & BITS40) + (mr >> 40)) | BIT41 | BIT42;