home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,890 of 2,978   
   Jim Leonard to 0439279208b62c95f1880bf0f8776...@t-   
   Re: longint and/or overflow bug?   
   30 Oct 12 12:31:06   
   
   556278a5   
   From: mobygamer@gmail.com   
      
   On Oct 30, 12:18 pm, Vinzent Höfler   
   <0439279208b62c95f1880bf0f8776...@t-domaingrabbing.de> wrote:   
   > Jim Leonard  wrote:   
   > >   l:=w1 * w2; {Throws runtime 215 "arithmetic overflow" if $Q+}   
   >   
   > Keep in mind that TP is a 16-bit compiler, it doesn't use 32-bit   
   > arithmetic by default.   
      
   One would think that the compiler would be smart enough to output code   
   appropriate for the size of the  destination  -- I guess not!  I'm   
   quite surprised I haven't encountered this before, and I've been   
   writing programs with TP7 on and off for 20 years.   
      
   I quickly tested casting one of the operands to longint() and that   
   worked, thanks for the suggestion.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca