X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata-out.c;h=e5a42d578199af58e2cb883d7c440a631d67c0c0;hb=2e0595dd8e344dbdcab740d7d2a3b67d153d6b39;hp=24428c6ac69c241a3fcb936f34614ff1045c1518;hpb=fa77efde13ecbb261b90109142453850b283b950;p=pspp diff --git a/src/data-out.c b/src/data-out.c index 24428c6ac6..e5a42d5781 100644 --- a/src/data-out.c +++ b/src/data-out.c @@ -467,8 +467,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 +531,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; }