bad floating point exception

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On FC4, with:
$ g++ --version
g++ (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)

I ran, in essence:

   unsigned    x = <seconds in the epoch>;
   unsigned    y = 0; // an error
   if (x % y == 0)
      ...

I got a floating point exception.  Peculiar?

Mike.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux