BUG: CINT <Long> Bad Value or Run Error 6 Compiled for 68020 (35330)






This article was previously published under Q35330

SYMPTOMS

Taking the CINT of a variable of type long will give Error 6 ("Overflow") at run time if the program is compiled with both the Generate 68020 Code and Check Arrays & Overflow compiler options. If the program is compiled without the Check Arrays & Overflow option, an incorrect (often negative) value will be returned. If the program is run in the interpreter or is compiled without the Generate 68020 Code option, the CINT function works correctly.

Microsoft has confirmed this to be a bug in Microsoft QuickBasic Version 1.00 for the Macintosh . We are researching this problem and will post new information as it becomes available.

The following program statement demonstrates the problem:
PRINT CINT(1&amp;)
				

Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: kbbug KB35330