summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2011-02-18 22:47:47 +0900
committerAkira TAGOH <akira@tagoh.org>2011-02-18 22:47:47 +0900
commit4e8102b6879b083d8b294e6da982ab9343c61122 (patch)
tree208620a5ed80429f9f833cad19ab78f45693a5ca
parent00ccaeac010d565e908b16c3fea238da4b5013d0 (diff)
fix a missing header file and typos
-rw-r--r--hieroglyph/hgreal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/hieroglyph/hgreal.h b/hieroglyph/hgreal.h
index de18eb0..4de2c79 100644
--- a/hieroglyph/hgreal.h
+++ b/hieroglyph/hgreal.h
@@ -28,6 +28,7 @@
#ifndef __HIEROGLYPH_HGREAL_H__
#define __HIEROGLYPH_HGREAL_H__
+#include <float.h>
#include <math.h>
#include <string.h>
#include <hieroglyph/hgquark.h>
@@ -74,7 +75,7 @@ HG_BEGIN_DECLS
* Returns:
*/
#define HG_REAL_EQUAL(_f1_,_f2_) \
- (fabsf((_f1_) - (_f2_)) <= FLT_EPSILON)
+ (fabs((_f1_) - (_f2_)) <= DBL_EPSILON)
/**
* HG_REAL_IS_ZERO:
* @real:
@@ -84,7 +85,7 @@ HG_BEGIN_DECLS
* Returns:
*/
#define HG_REAL_IS_ZERO(_f_) \
- (fabsf((_f_)) <= FLT_EPSILON)
+ (fabs((_f_)) <= DBL_EPSILON)
/**
* HG_REAL_GE:
* @real1: