forum.alglib.net

ALGLIB forum
It is currently Fri Nov 01, 2024 12:39 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: AlgLib 3.8.2 64-bit compilation warnings
PostPosted: Fri Mar 14, 2014 6:25 pm 
Offline

Joined: Tue Jul 06, 2010 8:00 pm
Posts: 21
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;


Top
 Profile  
 
 Post subject: Re: AlgLib 3.8.2 64-bit compilation warnings
PostPosted: Wed Mar 19, 2014 9:10 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 925
I've added your notice to issues tracker, it will be fixed in the upcoming release. Thanks for the report!


Top
 Profile  
 
 Post subject: Re: AlgLib 3.8.2 64-bit compilation warnings
PostPosted: Sat Feb 28, 2015 9:47 am 
Offline

Joined: Sat Feb 28, 2015 9:40 am
Posts: 1
Could someone give me some step by step installation guide regarding the matter?

_________________
raza


Top
 Profile  
 
 Post subject: Re: AlgLib 3.8.2 64-bit compilation warnings
PostPosted: Mon Mar 23, 2015 10:33 pm 
Offline

Joined: Tue Jul 06, 2010 8:00 pm
Posts: 21
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);


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group