X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fformat.h;h=4cde16b17a0b1352356f6b522c602bc18150b70e;hb=ff47c7eb6e8335ef6042e3a437f3d30ef27600a7;hp=21b75a14f534d7196f9df4ddacb12a8cc58b67c9;hpb=b0486442675e454c1e542a7098e5f127b2757787;p=pspp diff --git a/src/data/format.h b/src/data/format.h index 21b75a14f5..4cde16b17a 100644 --- a/src/data/format.h +++ b/src/data/format.h @@ -56,7 +56,7 @@ enum fmt_category }; /* Format type. */ -enum fmt_type +enum ATTRIBUTE ((packed)) fmt_type { #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_*. */ - 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. */