• towerful
    link
    fedilink
    arrow-up
    64
    arrow-down
    3
    ·
    edit-2
    1 year ago

    // increase the dynamically allocated memory space of a word sized integer stored at the memory address represented by the symbol "x" by the integer 1 and terminate the instruction

    • morrowind@lemmy.ml
      link
      fedilink
      arrow-up
      38
      ·
      1 year ago

      Wait why is it dynamically allocated and why are you increasing the memory. Something is very wrong here

    • Anders429
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Why the heck does it need to be dynamically allocated? Just put that puppy on the stack.

      • towerful
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        That’s what it used to do.
        But it was a bug, and the code has been fixed.