[Freeciv-Dev] (PR#9899) Assertion failed: cont > 0, file improvement.c,
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9899 >
> [kauf - Thu Sep 02 03:54:04 2004]:
>
> On Wed, Sep 01, 2004 at 08:47:10PM -0700, Benoit Hudson wrote:
> The client sets (or should set) the continent number at:
> client/packhand.c:2013
OK; thanks. Brett is right: it's related to byte order. Basically, it's a bug
to cast a short* to an
int*. On a little-endian machine, everything turns out fine because you just
clobber the
following field with a zero. On a big-endian machine, you set your field to
zero, and the
following field to the right value (but then it'll be read next).
Patch attached for the bug we noticed; there's lots more casting to int* though
that I am not
fixing.
fix_for_9899.diff
Description: Binary data
- [Freeciv-Dev] Re: (PR#9901) bug: OSX assert failure on first city being created, Jason Short, 2004/09/01
- [Freeciv-Dev] Re: (PR#9901) bug: OSX assert failure on first city being created, Benoit Hudson, 2004/09/01
- [Freeciv-Dev] (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Jason Short, 2004/09/01
- [Freeciv-Dev] (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Brett Albertson, 2004/09/01
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Benoit Hudson, 2004/09/01
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Mike Kaufman, 2004/09/01
- [Freeciv-Dev] (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289,
Benoit Hudson <=
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Per I. Mathisen, 2004/09/01
- [Freeciv-Dev] (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Benoit Hudson, 2004/09/01
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Jason Short, 2004/09/01
- [Freeciv-Dev] (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Benoit Hudson, 2004/09/02
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Jason Short, 2004/09/02
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Benoit Hudson, 2004/09/02
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Benoit Hudson, 2004/09/02
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Jason Short, 2004/09/02
- [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Jason Short, 2004/09/02
- [Freeciv-Dev] (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289, Gregory Berkolaiko, 2004/09/02
|
|