[Freeciv-Dev] Re: (PR#7216) take again client crash
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7216 >
On Sat, Jan 10, 2004 at 02:25:15AM -0800, Arnstein Lindgard wrote:
>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7216 >
>
> On Sat, 10 Jan 2004 00:38:32 -0800 Raimar Falke wrote:
>
> > > > ***************************************************************/
> > > > struct tile *map_get_tile(int x, int y)
> > > > {
> > > > + assert(map.tiles != NULL);
> > > > return MAP_TILE(x, y);
> > > > }
> > >
> > > absolutely not. Do you know how many times map_get_tile gets called?
> >
> > It is one test on a value already loaded into a register.
>
> How would the compiler know the value hasn't changed?
It doesn't. It would check the value every call.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"The Internet is really just a series of bottlenecks
joined by high speed networks."
-- Sam Wilson
|
|