fix bug in write_big_endian_uint64()
authorJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 28 May 2001 21:07:36 +0000 (21:07 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 28 May 2001 21:07:36 +0000 (21:07 +0000)
src/flac/encode.c

index 7dc33b87300a51ea7a7ceb40af0d0dafd2c3465a..15233f209b5603183c4fa6dbc20df7314e6979a0 100644 (file)
@@ -1056,7 +1056,7 @@ bool write_big_endian_uint64(FILE *f, uint64 val)
                byte *b = (byte *)&val, tmp;
                tmp = b[0]; b[0] = b[7]; b[7] = tmp;
                tmp = b[1]; b[1] = b[6]; b[6] = tmp;
-               tmp = b[2]; b[2] = b[5]; b[3] = tmp;
+               tmp = b[2]; b[2] = b[5]; b[5] = tmp;
                tmp = b[3]; b[3] = b[4]; b[4] = tmp;
        }
        return fwrite(&val, 1, 8, f) == 8;