aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-08 11:49:16 +0200
committerThomas White <taw@physics.org>2010-04-08 11:49:35 +0200
commitd554760847b4beb9ee5e8e187168971e15239e38 (patch)
tree88e291d4d3237fad1996aa88beb241b0a9d0ef42
parentfb512209ffc937cfe84eec5ba60a97068bb01536 (diff)
process_hkl: Read intensities as floating-point
-rw-r--r--src/process_hkl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 8bc76e5e..78c6b1fc 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -293,7 +293,8 @@ int main(int argc, char *argv[])
do {
char line[1024];
- signed int h, k, l, intensity;
+ signed int h, k, l;
+ float intensity;
int r;
rval = fgets(line, 1023, fh);
@@ -316,7 +317,7 @@ int main(int argc, char *argv[])
n_patterns++;
}
- r = sscanf(line, "%i %i %i %i", &h, &k, &l, &intensity);
+ r = sscanf(line, "%i %i %i %f", &h, &k, &l, &intensity);
if ( r != 4 ) continue;
if ( (h==0) && (k==0) && (l==0) ) continue;