Array initialization bugs

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
phantombeta
Posts: 2088
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Array initialization bugs

Post by phantombeta »

Just some bugs introduced with my PR.

GZDoom spits out non-sensical errors if you attempt to initialize DynArrays, and I forgot to initialize the register for the array's stack offset.
About the DynArray bug, it'll complain about something being a non-value or something.

Right now I'm actually working on adding support for dynamic array initialization, and I've already fixed the stack offset, so I'm just posting this here so people can remind me if I get side-tracked or forget about it. (and also so I can link the PR here once it's done)
User avatar
phantombeta
Posts: 2088
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Array initialization bugs

Post by phantombeta »

PR here. This adds support for dynamic arrays, fixes some nasty bugs and adds an error message when attempting to initialize multi-dimensional arrays.
I'm somewhat ashamed of how many mistakes I made in the original PR for the array initializers. :(
User avatar
Rachael
Posts: 13557
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Array initialization bugs

Post by Rachael »

phantombeta wrote:I'm somewhat ashamed of how many mistakes I made in the original PR for the array initializers. :(
Don't be. You're willing to fix it, and that counts a lot.
User avatar
phantombeta
Posts: 2088
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Array initialization bugs

Post by phantombeta »

This can be closed.
Post Reply

Return to “Closed Bugs [GZDoom]”