git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e08b767
)
Compile with float/double again.
author
David Gow
<
[email protected]
>
Sat, 4 Oct 2014 10:47:43 +0000
(18:47 +0800)
committer
David Gow
<
[email protected]
>
Sat, 4 Oct 2014 10:47:43 +0000
(18:47 +0800)
src/real.h
patch
|
blob
|
history
diff --git
a/src/real.h
b/src/real.h
index
e4d594e
..
917f3e0
100644
(file)
--- a/
src/real.h
+++ b/
src/real.h
@@
-61,11
+61,11
@@
namespace IPDF
#if REALTYPE == REAL_SINGLE
typedef float Real;
inline Real RealFromStr(const char * str) {return strtof(str, NULL);}
#if REALTYPE == REAL_SINGLE
typedef float Real;
inline Real RealFromStr(const char * str) {return strtof(str, NULL);}
-
//
inline std::string Str(const Real & a) {std::stringstream s; s << a; return s.str();}
+ inline std::string Str(const Real & a) {std::stringstream s; s << a; return s.str();}
#elif REALTYPE == REAL_DOUBLE
typedef double Real;
inline Real RealFromStr(const char * str) {return strtod(str, NULL);}
#elif REALTYPE == REAL_DOUBLE
typedef double Real;
inline Real RealFromStr(const char * str) {return strtod(str, NULL);}
-
//
inline std::string Str(const Real & a) {std::stringstream s; s << a; return s.str();}
+ inline std::string Str(const Real & a) {std::stringstream s; s << a; return s.str();}
#elif REALTYPE == REAL_LONG_DOUBLE
typedef long double Real;
inline Real RealFromStr(const char * str) {return strtold(str, NULL);}
#elif REALTYPE == REAL_LONG_DOUBLE
typedef long double Real;
inline Real RealFromStr(const char * str) {return strtold(str, NULL);}
UCC
git Repository :: git.ucc.asn.au