[4.10]Incompatibility with dynamic arrays

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
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

[4.10]Incompatibility with dynamic arrays

Post by Major Cooke »

The recent change from uint to int is causing mods to have incompatibility problems. Mods that rely upon using the internal functions of the dynamic arrays such as Size() are unable to convert from one to the other. It just says "Cannot convert from UInt to SInt" or something along those lines.

Code: Select all

Class AArrayTest
{
	Array<Actor> test;
	uint GetSize()
	{
		return test.Size();
	}
}
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [4.10]Incompatibility with dynamic arrays

Post by Graf Zahl »

"or something along these lines" is not a sufficient error description.
Also, please post a runnable example, not a code fragment.
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: [4.10]Incompatibility with dynamic arrays

Post by Major Cooke »

Odd, I'm no longer capable of replicating the issue anymore. Perhaps Ricardo, during his ventures, ended up fixing it. Should it crop up again I'll re-open this.
Post Reply

Return to “Closed Bugs [GZDoom]”