[GiNaC-list] Possible size issue in test in numeric.cpp

Pierangelo Masarati masarati at aero.polimi.it
Thu Aug 17 09:51:03 CEST 2006


Richard B. Kreckel writes: 

[snip] 

Also, CLN's documentation states that |i| < 2^29, which means that the test 
in GiNaC for integers could be broken as well, as it does 

       i >= -(1L << (cl_value_len-1)) 

which allows |i| == 2^29 when i is -2^29 (assuming cl_value_len == 30). 

Cheers, p. 

Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 | mailto:pierangelo.masarati at polimi.it
via La Masa 34, 20156 Milano, Italy   | http://www.aero.polimi.it/~masarati 

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html 



More information about the GiNaC-list mailing list