View Issue Details

IDProjectCategoryView StatusLast Update
0020156Runner[All Projects] FunctionsPublic2018-02-06 11:44
ReporterGameGeishaAssigned ToMike Dailly 
PriorityMediumSeverityB - MajorReproducibility100%
Status ClosedResolutionFixed 
Product Version 
Target VersionFixed in Version 
Summary0020156: Functions: Inconsistent behaviour of array dimension functions between Windows and HTML5
DescriptionA number of array height and length functions behave different on HTML5 compared to Windows.

On Windows:
- array_height_2d() returns 1 for 1D arrays.
- array_length_1d() returns the length of the first row for 2D arrays.
- array_length_2d() returns 0 for the length of row 0 for 1D arrays.

On HTML5:
- array_height_2d() returns the full length for 1D arrays.
- array_length_1d() returns the number of rows for 2D arrays.
- array_length_2d() returns 0 for the length of row 0 for 1D arrays.
Steps To ReproduceRun the attached GMZ on Windows and HTML5. Note the differences:

Windows:
array_height_2d(array1d) = 1
array_height_2d(array2d) = 2
array_length_1d(array1d) = 3
array_length_1d(array2d) = 3
array_length_2d(array1d, 0) = 3
array_length_2d(array2d, 0) = 3
array_length_2d(array1d, 1) = 0
array_length_2d(array2d, 1) = 3

HTML5:
array_height_2d(array1d) = 3
array_height_2d(array2d) = 2
array_length_1d(array1d) = 3
array_length_1d(array2d) = 2
array_length_2d(array1d, 0) = 0
array_length_2d(array2d, 0) = 3
array_length_2d(array1d, 1) = 0
array_length_2d(array2d, 1) = 3
Additional InformationIf you have time, please check the implementation array dimensions on other platforms as well. They should be consistent across exports.
TagsNo tags attached.
1.4 Found In1.4.1711
2.x Runtime Found In
2.x Runtime Verified In

Activities

GameGeisha

2016-02-01 07:31

Updater  

ArrayDimensions.gmz (8,039 bytes)

Mike Dailly

2017-09-06 17:25

Manager   ~0055326

fixed in gitlab