Skip to content

Conversation

@Arkshine
Copy link
Member

@Arkshine Arkshine commented Dec 8, 2014

Based on the following SM fix : alliedmodders/sourcemod@099f299 since c++ code is not allowed. So I hope this is not too much dumb conversion and is correct.

This fixes also a crash (assertion) when 3d array with undefined size and trailing comma is used.

Tested with 2d/3d arrays with string and non-string values and this looks good.

@dvander
Copy link
Member

dvander commented Dec 8, 2014

I don't know if it matters, but if initarray is re-entrant then you probably don't want that disable variable to be static. 🚢! anyway

Arkshine added a commit that referenced this pull request Dec 8, 2014
…comma-in-array

Fix trailing commas in array literals changing the result of sizeof()
@Arkshine Arkshine merged commit 6ba614d into alliedmodders:master Dec 8, 2014
@Arkshine Arkshine deleted the fix/sizeof-issue-with-trailing-comma-in-array branch December 8, 2014 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants