| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Integer overflow |
FT> How do you test for integer overflow? there is *no* magic way for that. you have to do it by hand. like, if you do unsigned a+b and the result is smaller than either, beep. but for larger formulas it's much more complex, and it might become a pain. Make a class of numbers that checks everything and throws exceptions, or such. matju --- Maximus 3.01 ---------------* Origin: BitByters BBS, Rockland ON, Can. (613)446-7773 v34, (1:163/215) |
|
| 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™.