Re: Help wanted - problems with heap



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.
.



Relevant Pages

  • Re: Help wanted - problems with heap
    ... LOL, i forgot to actually fix the bug ... See how easy a mistake it is too make;) ...
    (rec.games.roguelike.development)
  • Re: sympy: whats wrong with this picture?
    ... It took me all of 5 minutes to find the mistake. ... I posted the patch on the bug tracker: ... The symptom was serious although the fix was simple. ...   that is made terrible by our own mad attempt to interpret it as though it had ...
    (comp.lang.python)
  • Re: dict.has_key(x) versus x in dict
    ... Hendrik> don't fix it... ... LOL - this is kind of weird - it was working, nobody complained, you fiddled ... You fix the bug and all is well again. ...
    (comp.lang.python)
  • [Un] Unangband 0.6.3 released
    ... Allow player to assemble friendly monsters and carry eggs to hatch ... Updated druidic spells to use new region code. ... Fix lockup bugs generating the Old Forest. ... Fix bug where items dropped by monster death would infinitely ...
    (rec.games.roguelike.announce)
  • please pull from the trivial tree
    ... Fix spelling in E1000_DISABLE_PACKET_SPLIT Kconfig description ... +- Finding patch that caused a bug ... +Always try the latest kernel from kernel.org and build from source. ... Length of input string in bytes ...
    (Linux-Kernel)

Loading