aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-16 13:54:15 +0100
committerThomas White <taw@physics.org>2010-03-16 13:54:15 +0100
commitdc77ca88c801412bc7976e9830e09dd8bd9c2fed (patch)
treed0454ac20ca2aa0832d23ce4b0081f861c853ba8 /src
parentaf366ed37c7f5b53bc24ed729f02342f335806c2 (diff)
parent99e6385361a836df2dbb8fa6c340e4e963ba3da4 (diff)
Merge branch 'master' of ssh://git.bitwiz.org.uk/crystfel
Diffstat (limited to 'src')
-rw-r--r--src/cell.c2
-rw-r--r--src/image.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cell.c b/src/cell.c
index c564c3b5..5747ed63 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -401,7 +401,7 @@ UnitCell *match_cell(UnitCell *cell, UnitCell *template, int verbose)
double angles[3];
struct cvec *cand[3];
UnitCell *new_cell = NULL;
- float best_fom = +HUGE_VALF;
+ float best_fom = +999999999.9; /* Large number.. */
int ncand[3] = {0,0,0};
float ltl = 5.0; /* percent */
float angtol = deg2rad(5.0);
diff --git a/src/image.h b/src/image.h
index 5159d63e..5715d570 100644
--- a/src/image.h
+++ b/src/image.h
@@ -19,6 +19,7 @@
#include <stdint.h>
#include <complex.h>
+#include <sys/types.h>
#include "utils.h"
#include "cell.h"