[Freeciv-Dev] Re: (PR#15840) common/dataio.c:700 is dubious
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15840 >
On 3/13/06, Jason Short wrote:
>
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=15840 >
>
> I believe the previous bug was caused by endian issues. A platform
> using 4-bit enumerations and an improper endianness will read the data
> incorrectly.
Indeed, I hadn't thought about endianness issues. Big-endian
architectures with shorter-than-int enumerations will serialize and
deserialize random values. My patch does fix this issue too.
|
|