[Insight-developers] Fixing 64 bits warnings on Mac : Nifti

Luis Ibanez luis.ibanez at kitware.com
Mon Nov 16 13:19:06 EST 2009


On Mon, Nov 16, 2009 at 12:08 PM, Sean McBride <sean at rogue-research.com> wrote:
> On 11/15/09 6:28 PM, Luis Ibanez said:
>
>>We are fixing conversions warnings in Mac, that indicate potential
>>truncation of 64 bits types into 32 bits types.
>>
>>As part of this effort, the following changes were committed to the
>>nifti library in Insight/Utilities.
>>
>>http://public.kitware.com/cgi-bin/viewcvs.cgi/Utilities/nifti/niftilib/
>>nifti1_io.c?root=Insight&r1=1.33&r2=1.34&sortby=date
>
> I noticed you changed code like:
>
> 0.0
>
> to
>
> (float)(0.0)
>
> Personally, I find "0.0f" nicer than a cast.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
-----------------------------------------

Good point,

Actually I wasn't very consistent.

In some places I did also "0.0f".
I'll revisit the changes and use "0.0f" when possible.


     Luis


More information about the Insight-developers mailing list