Microsoft KB Archive/35330: Difference between revisions

From BetaArchive Wiki
m (Text replacement - "<" to "<")
m (Text replacement - ">" to ">")
Line 12: Line 12:
<div id="TitleRow">
<div id="TitleRow">


= <span id="KB35330"></span>BUG: CINT <Long&gt; Bad Value or Run Error 6 Compiled for 68020 =
= <span id="KB35330"></span>BUG: CINT <Long> Bad Value or Run Error 6 Compiled for 68020 =





Revision as of 10:19, 21 July 2020

Knowledge Base


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

Article ID: 35330

Article Last Modified on 11/21/2006

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;)
                


Additional query words: MQuickB

Keywords: kbbug KB35330