The information in this article applies to:
SYMPTOMSAn attempt to execute a program that reads in the smallest negative integer within the range of the variable type may cause the following run-time error to be generated:
RESOLUTIONBecause these smallest integers do not cause a problem when calculated internally, this problem can be addressed by changing the input data to the smallest allowable value for the integer size, and then subtracting one (1) after the value is read in. STATUSMicrosoft has confirmed this to be a problem in Microsoft FORTRAN PowerStation 32 for NT, version 1.0. This is not a problem in Microsoft FORTRAN for MS-DOS, version 5.1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONThe range of integers that can be read in correctly is: -127 to 127 for INTEGER*1The problem occurs when trying to read in -128 for INTEGER*1 Sample CodeC Compile options needed: have no effectC The following code demonstrates the problem:
REFERENCESMicrosoft FORTRAN PowerStation 32 "Programmer's Guide," page 48, "Integer Data Types." Additional query words: 1.00
Keywords : |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |