Ignore:
Timestamp:
Aug 11, 2009, 10:56:57 PM (13 years ago)
Author:
Sam Hocevar
Message:

Fix numerous compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/specs.cpp

    r129 r162  
    433433  for (s=access_string;*s;s++)
    434434    if (toupper(*s)=='W')
     435    {
    435436      if (access)
    436437        access=O_RDWR;
    437438      else access=O_WRONLY;
     439    }
    438440
    439441  for (s=access_string;*s;s++)
     
    627629{
    628630  double a;
    629   write_uint32((long)(modf(x,&a)*(double)(1<<32-1)));
     631  write_uint32((long)(modf(x,&a)*(double)(1<<31)));
    630632  write_uint32((long)a);
    631633}
     
    636638  a=read_uint32();
    637639  b=read_uint32();
    638   return (double)b+a/(double)(1<<32-1);
     640  return (double)b+a/(double)(1<<31);
    639641}
    640642
Note: See TracChangeset for help on using the changeset viewer.