TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: HANS LUNSING
from: TIM HUTZLER
date: 1996-12-04 11:40:00
subject: Re: PB3.2 BIG bug alert!

HL>On Friday, 22 November 1996 09:24:10, you wrote to All:
TH>In a function I am passing a QUAD data type to a DWORD.
TH>The least six bits are *always* clear!
TH>I tried CVWD, but that didn't work. x??? = y@@ works fine, but
TH>setting the function variable does not.
HL>It isn't exactly clear to me in what circumstances it doesn't work.
HL>I tried some things, but everything went well. Can you give an
HL>example?
I have a small program that demonstrates this, but I don't know which
TESTnnn it is. Maybe I will rewrite it. I'm so busy right now. But,
when this bugger rears it's head again, I will post my findings.
HL>Note that "@@" doesn't indicate a quad variable, but a BCD floating
HL>point. And I think you mean CDWD in stead of CVWD?
Yea, the ol' finders tripping over the keyboard again... [grin]
TH>I expect a *free* upgrage for putting up with this... [grin]
HL>;)
Yea, but it *is* Christmass. [grin]
--- Maximus/2 3.01
HL>Hello Tim
TH>I have a simple numerical data type in a SUB. I set it to,
TH>say, '5' and simply attempt to PRINT it. I get a run-time overflow
TH>at the print command!
TH>Of course it doesn't do this consistently. just *below* the
TH>PRINT command I have a FOR/NEXT with STEP -1. If I change the STEP
TH>to '1' I get no error. I tried a DO/LOOP increment, no error;
TH>decrement, error.
HL>This sounds rather consistent to me. But... could you be more
HL>specific? I couldn't produce the error. What numeric data type did
HL>you use? What is the data type of the for loop counter? Maybe you
HL>could give a clear example in which you get the run-time overflow.
Next time it happens I'll do a better job at documenting it. I had a
short test program, but I don't know what I did with it. [sigh]
___ Blue Wave/QWK v2.12
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.