Hi Karl-

Could you post the code that goes with the warnings?

Also, kmx has fixed a number of the 64bit<->double issues in the 
longlong-double-fix
branch.  Do you get the same warnings from that?  I've re-added 
pdl-devel to the
cc list, don't know how it dropped off...

--Chris

On 8/28/2015 23:35, Karl Glazebrook wrote:
> Got some strange warnings on OS X build?
>
>
>
> ——
>
> func.xs:17517:33: warning: implicit conversion from 'double' to 'PDL_Long' 
> (aka 'int') changes value from 0.25 to 0
>        [-Wliteral-conversion]
>            else { PDL_Long foo = 0.25;
>                            ~~~   ^~~~
> Ufunc.xs:17624:33: warning: implicit conversion from 'double' to 'PDL_Long' 
> (aka 'int') changes value from 0.25 to 0
>        [-Wliteral-conversion]
>            else { PDL_Long foo = 0.25;
>                            ~~~   ^~~~
> Ufunc.xs:17731:33: warning: implicit conversion from 'double' to 'PDL_Long' 
> (aka 'int') changes value from 0.25 to 0
>        [-Wliteral-conversion]
>            else { PDL_Long foo = 0.25;
>                            ~~~   ^~~~
> Ufunc.xs:17838:33: warning: implicit conversion from 'double' to 'PDL_Long' 
> (aka 'int') changes value from 0.25 to 0
>        [-Wliteral-conversion]
>            else { PDL_Long foo = 0.25;
>                            ~~~   ^~~~
> Ufunc.xs:17945:33: warning: implicit conversion from 'double' to 'PDL_Indx' 
> (aka 'long') changes value from 0.25 to 0
>        [-Wliteral-conversion]
>            else { PDL_Indx foo = 0.25;
>                            ~~~   ^~~~
> Ufunc.xs:18052:37: warning: implicit conversion from 'double' to 
> 'PDL_LongLong' (aka 'long') changes value from 0.25 to 0
>        [-Wliteral-conversion]
>            else { PDL_LongLong foo = 0.25;
>


------------------------------------------------------------------------------
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to