forum.alglib.net
http://forum.alglib.net/

AlgLib 3.8.2 64-bit compilation warnings
http://forum.alglib.net/viewtopic.php?f=2&t=1587
Page 1 of 1

Author:  alusr1 [ Fri Mar 14, 2014 6:25 pm ]
Post subject:  AlgLib 3.8.2 64-bit compilation warnings

When building a 64-bit version of AlgLib 3.8.2 using Visual Studio 2010, I am getting 398 compilation warnings of this type:
" '=' : conversion from 'alglib_impl::ae_int_t' to 'double', possible loss of data "
For example, in lines 461, 1455, 12712 and 12713 of alglibinternal.cpp.

This is likely a result of the ae_int_t being 64-bit instead of 32-bit (on the x86 platform, compilation of the same source code generates no warnings).

Should an explicit cast to 'double' be added in all these assignment lines? For example, in line 461 of alglibinternal.cpp:
result = a; --> result = (double)a;

Author:  Sergey.Bochkanov [ Wed Mar 19, 2014 9:10 am ]
Post subject:  Re: AlgLib 3.8.2 64-bit compilation warnings

I've added your notice to issues tracker, it will be fixed in the upcoming release. Thanks for the report!

Author:  xaaobao [ Sat Feb 28, 2015 9:47 am ]
Post subject:  Re: AlgLib 3.8.2 64-bit compilation warnings

Could someone give me some step by step installation guide regarding the matter?

Author:  alusr1 [ Mon Mar 23, 2015 10:33 pm ]
Post subject:  Re: AlgLib 3.8.2 64-bit compilation warnings

With AlgLib 3.9.0, all of these warnings have been removed through type casts, except for one:

warning C4244: 'argument' : conversion from 'alglib_impl::ae_int_t' to 'double', possible loss of data test_c.cpp line #35865

exactnesserrors = exactnesserrors||ae_fp_greater(ae_c_abs(ae_c_sub(cv2,ae_c_mul_d(cy.ptr.p_complex[0],n)), _state),cv2err);

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/