Microsoft KB Archive/11348

The Expression (I - 1) * 256

PSS ID Number: Q11348 Article last modified on 10-20-1988

3.30 XENIX buglist3.30

Problem: The expression (I - 1) * 256 is not being evaluated correctly. When the $STORAGE:2 and $DEBUG metacommands are used, and “I” has been given the value 128, an integer overflow error occurs as the expression is evaluated as (I * 256) - (I * 256). The following is a short example code: $STORAGE:2 $DEBUG PROGRAM TEST I = 128 J = (I - 1) * 256 END

Response: Microsoft has confirmed this to be a problem in Version 3.30. We are researching this problem and will post new information as it becomes available.