X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata-out.c;h=14c0f94b39bd514dfe2e6cf24e66a5bdfcd1c882;hb=fcb9e49b2a2d57af7c001ae5d2eda9ac443ba36b;hp=24428c6ac69c241a3fcb936f34614ff1045c1518;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/data-out.c b/src/data-out.c index 24428c6ac6..14c0f94b39 100644 --- a/src/data-out.c +++ b/src/data-out.c @@ -35,8 +35,6 @@ #include "str.h" #include "var.h" -#undef DEBUGGING -/*#define DEBUGGING 1*/ #include "debug-print.h" /* In older versions, numbers got their trailing zeros stripped. @@ -467,8 +465,9 @@ convert_IB (char *dst, const struct fmt_spec *fp, const union value *v) } } memcpy (dst, temp, fp->w); - if (endian == LITTLE) - mm_reverse (dst, fp->w); +#ifndef WORDS_BIGENDIAN + mm_reverse (dst, fp->w); +#endif return 1; } @@ -530,8 +529,9 @@ convert_PIB (char *dst, const struct fmt_spec *fp, const union value *v) frac *= 256.0; ((unsigned char *) dst)[i] = floor (frac); } - if (endian == LITTLE) - mm_reverse (dst, fp->w); +#ifndef WORDS_BIGENDIAN + mm_reverse (dst, fp->w); +#endif return 1; } @@ -749,10 +749,6 @@ convert_date (char *dst, const struct fmt_spec *fp, const union value *v) } } break; -#if __CHECKER__ - case 42000: - assert (0); -#endif default: assert (0); }