Home » U++ Library support » U++ Core » CParser: Suggest check for overflow in ReadInt, ReadDouble...
Re: CParser: Suggest check for overflow in ReadInt, ReadDouble... [message #41027 is a reply to message #41026] |
Tue, 22 October 2013 07:41 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
hans wrote on Mon, 21 October 2013 16:57 | Thanks, looks good.
For double no check is needed indeed, it already returns #INF on overflow.
Hans
|
Well, I have not checked in Win32, but in Linux it does not seem to work that way. In any case, to make things consistent, it should throw the error too. After some investigation, I plan to reset FP exceptions state at the start of method and check them at the end. The only problem seems to be that this checking is different for Win32 vs Posix....
|
|
|
|
|
CParser: Suggest check for overflow in ReadInt, ReadDouble...
By: hans on Thu, 17 October 2013 21:35
|
|
|
Re: CParser: Suggest check for overflow in ReadInt, ReadDouble...
By: mirek on Fri, 18 October 2013 07:44
|
|
|
Re: CParser: Suggest check for overflow in ReadInt, ReadDouble...
By: mirek on Mon, 21 October 2013 20:36
|
|
|
Re: CParser: Suggest check for overflow in ReadInt, ReadDouble...
By: hans on Mon, 21 October 2013 22:57
|
|
|
Re: CParser: Suggest check for overflow in ReadInt, ReadDouble...
By: mirek on Tue, 22 October 2013 07:41
|
|
|
Re: CParser: Suggest check for overflow in ReadInt, ReadDouble...
By: mirek on Wed, 23 October 2013 07:51
|
Goto Forum:
Current Time: Sat May 25 03:31:13 CEST 2024
Total time taken to generate the page: 0.00497 seconds
|