Use isnan(3) to check for NaN #1

Merged
swolchok merged 2 commits from master into master 2014-04-18 14:06:25 -07:00
swolchok commented 2014-04-18 13:42:45 -07:00 (Migrated from github.com)

There's a standard C function (actually a macro) to check for NaN; let's use that for clarity.

There's a standard C function (actually a macro) to check for NaN; let's use that for clarity.
swolchok commented 2014-04-18 13:47:28 -07:00 (Migrated from github.com)

Also pushed 5498516 which fixes a memory leak

Also pushed 5498516 which fixes a memory leak
swolchok commented 2014-04-18 13:52:27 -07:00 (Migrated from github.com)

btw to find the bug fixed by 5498516:
brew install valgrind
clang Layout.c
valgrind ./a.out
note complaint about "definitely lost" bytes, follow advice to re-run with --leak-check=full:
valgrind --leak-check=full ./a.out

btw to find the bug fixed by 5498516: brew install valgrind clang Layout.c valgrind ./a.out note complaint about "definitely lost" bytes, follow advice to re-run with --leak-check=full: valgrind --leak-check=full ./a.out
vjeux commented 2014-04-18 14:06:37 -07:00 (Migrated from github.com)

Thanks! I definitively need to install valgrind :)

Thanks! I definitively need to install valgrind :)
Sign in to join this conversation.
No description provided.