Re: Help wanted - problems with heap
- From: Kenneth 'Bessarion' Boyd <zaimoni@xxxxxxxxxxx>
- Date: Mon, 3 Dec 2007 00:54:07 +0000 (UTC)
On 2007-12-03 01:21:36, andrewdoull <andrewdoull@xxxxxxxxx> wrote:
On 2007-12-03 00:24:44, Keith H Duggar wrote:
On Dec 2, 6:22 pm, Keith H Duggar wrote:
saved[x + y*dy] = cave_feat[y + y1][x + x1] ;
LOL, i forgot to actually fix the bug
saved[x + y*dx] = cave_feat[y + y1][x + x1] ;
See how easy a mistake it is too make ;)
Um, that seems to have fixed it... thanks for the advice everyone. I guess it
wasn't as complicated as I thought...
This is about as elegant a case I can think of for an NDEBUG-controlled wrapper
for array dereferencing. Unfortunately, I can't think of a clean C
implementation for the dynamically allocated case. Not only do you have to have
non-standard help from the C memory manager, you really want an inline function
that returns a reference.
.
- References:
- Help wanted - problems with heap
- From: andrewdoull
- Re: Help wanted - problems with heap
- From: tyrecius13
- Re: Help wanted - problems with heap
- From: andrewdoull
- Re: Help wanted - problems with heap
- From: tyrecius13
- Re: Help wanted - problems with heap
- From: andrewdoull
- Re: Help wanted - problems with heap
- From: Keith H Duggar
- Re: Help wanted - problems with heap
- From: Keith H Duggar
- Re: Help wanted - problems with heap
- From: andrewdoull
- Help wanted - problems with heap
- Prev by Date: Re: Help wanted - problems with heap
- Next by Date: Event Based or Get-Key based
- Previous by thread: Re: Help wanted - problems with heap
- Next by thread: Re: Help wanted - problems with heap
- Index(es):
Relevant Pages
|
Loading