[Kstars-devel] Review Request 119010: In C++, it should be std::isnan() from <cmath>

Vadim Zhukov persgray at gmail.com
Mon Jun 30 08:50:33 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119010/
-----------------------------------------------------------

(Updated June 30, 2014, 12:50 p.m.)


Status
------

This change has been marked as submitted.


Review request for KStars.


Repository: kstars


Description
-------

KStars uses isnan() at a few places. Unfortunately, it uses isnan() from plain C that looks like picked up by accident on some systems (while it should not be, in general). This breaks compilation on other conformant systems, like OpenBSD, which try to not leak symbols without explicit request.

The right way is to use std::isnan() from <cmath>. It's already done in kstars/skyobjects/ksmoon.cpp, but few other files need fixing.

Please note that I do not have commit rights at KDE repos.


Diffs
-----

  kstars/skycomponents/asteroidscomponent.cpp e173145 
  kstars/skycomponents/cometscomponent.cpp e3b6540 
  kstars/skyobjects/starobject.cpp ca0400d 

Diff: https://git.reviewboard.kde.org/r/119010/diff/


Testing
-------

OpenBSD/i386-CURRENT, KDE 4.13 (the affected code wasn't changed in KStars master branch).


Thanks,

Vadim Zhukov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20140630/da8c8526/attachment.html>


More information about the Kstars-devel mailing list