projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a bug causing pspp to crash when computed variables had no format
[pspp]
/
src
/
data-out.c
diff --git
a/src/data-out.c
b/src/data-out.c
index cc1292e5e262279b44cae19576d3f44e678849bc..c1f3ff8120feaa93c13844c4c280ed87babe4b1c 100644
(file)
--- a/
src/data-out.c
+++ b/
src/data-out.c
@@
-24,7
+24,6
@@
#include <float.h>
#include <stdlib.h>
#include <time.h>
#include <float.h>
#include <stdlib.h>
#include <time.h>
-#include "approx.h"
#include "error.h"
#include "format.h"
#include "julcal/julcal.h"
#include "error.h"
#include "format.h"
#include "julcal/julcal.h"
@@
-1189,7
+1188,7
@@
try_F (char *dst, const struct fmt_spec *fp, double number)
n_int = 0;
/* Avoid printing `-.000'. 7/6/96. */
n_int = 0;
/* Avoid printing `-.000'. 7/6/96. */
- if (
approx_eq (number, 0.0)
)
+ if (
mag < EPSILON
)
number = 0.0;
}
else
number = 0.0;
}
else
@@
-1198,7
+1197,7
@@
try_F (char *dst, const struct fmt_spec *fp, double number)
digits in floor(number), including any sign. */
for (;;)
{
digits in floor(number), including any sign. */
for (;;)
{
- if (mag >= power10[n_int])
/* Should this be approx_ge()? */
+ if (mag >= power10[n_int])
{
assert (delta[j]);
n_int += delta[j++];
{
assert (delta[j]);
n_int += delta[j++];