Skip to content

Commit

Permalink
Making LibSVF compile with GCC 4.6 (for Ubuntu 12.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
teqdruid committed Jul 30, 2012
1 parent aa2b590 commit 9ebe475
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions svf/svf.hpp
Expand Up @@ -16,6 +16,7 @@
#include <svf/matrix_correlate.hpp> #include <svf/matrix_correlate.hpp>


#include <stdint.h> #include <stdint.h>
#include <cstdlib>
#include <cassert> #include <cassert>


namespace SVF { namespace SVF {
Expand Down
2 changes: 2 additions & 0 deletions svf/trace.hpp
Expand Up @@ -11,6 +11,8 @@
#ifndef __SVF_TRACE_HPP__ #ifndef __SVF_TRACE_HPP__
#define __SVF_TRACE_HPP__ #define __SVF_TRACE_HPP__


#include <stdint.h>
#include <cstdlib>
#include <vector> #include <vector>
#include <cassert> #include <cassert>


Expand Down
4 changes: 2 additions & 2 deletions tests/sparse_vector_tests.cpp
Expand Up @@ -107,8 +107,8 @@ class SparseVectorSVFTests: public CPPUNIT_NS::TestCase
struct ScalarDist { struct ScalarDist {
template <typename T> template <typename T>
double operator()(T a, T b) { double operator()(T a, T b) {
assert(!isnan(a)); assert(!std::isnan((T)a));
assert(!isnan(b)); assert(!std::isnan((T)b));
return fabs(a - b); return fabs(a - b);
} }
}; };
Expand Down

0 comments on commit 9ebe475

Please sign in to comment.