Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add a isNaN function for integers #37

Merged

Conversation

slizzered
Copy link
Contributor

  • on some compilers, isnan(int) was not defined and would cause compile
    errors
  • now, isnan(int) and isnan(unsigned) return false, which is always
    correct

@slizzered slizzered added the bug label Sep 16, 2014
@slizzered slizzered added this to the 1.5 - extended features milestone Sep 16, 2014
* @brief this allows the use of isnan() for unsigned
* in the template function fileToVector()
*/
inline bool isnan(unsigned i){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsigned might be const 👾

 - on some compilers, isnan(int) was not defined and would cause compile
   errors
 - now, isnan(const int) and isnan(const unsigned) return false, which is always
   correct
 - everything is const as ***
erikzenker pushed a commit that referenced this pull request Sep 16, 2014
@erikzenker erikzenker merged commit fac7c48 into ComputationalRadiationPhysics:dev Sep 16, 2014
@slizzered slizzered modified the milestones: 1.5 - extended features, 1.1 - Leaving the burrow Jan 13, 2015
@slizzered slizzered deleted the fix-isnan_for_int branch June 8, 2015 21:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants