projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible incorrect assertion when creating unique casereaders.
[pspp]
/
src
/
data
/
format.h
diff --git
a/src/data/format.h
b/src/data/format.h
index 21b75a14f534d7196f9df4ddacb12a8cc58b67c9..4cde16b17a0b1352356f6b522c602bc18150b70e 100644
(file)
--- a/
src/data/format.h
+++ b/
src/data/format.h
@@
-56,7
+56,7
@@
enum fmt_category
};
/* Format type. */
};
/* Format type. */
-enum fmt_type
+enum
ATTRIBUTE ((packed))
fmt_type
{
#define FMT(NAME, METHOD, IMIN, OMIN, IO, CATEGORY) FMT_##NAME,
#include "format.def"
{
#define FMT(NAME, METHOD, IMIN, OMIN, IO, CATEGORY) FMT_##NAME,
#include "format.def"
@@
-75,8
+75,8
@@
enum fmt_type
struct fmt_spec
{
enum fmt_type type; /* One of FMT_*. */
struct fmt_spec
{
enum fmt_type type; /* One of FMT_*. */
-
int w; /* Width
. */
-
int d; /* Number of decimal places
. */
+
uint8_t d; /* Number of decimal places
. */
+
uint16_t w; /* Width
. */
};
/* Maximum width of any numeric format. */
};
/* Maximum width of any numeric format. */