openfl / starling

Known as the "Cross-Platform Game Engine", Starling is a popular Stage3D framework for OpenFL and Haxe
Other
236 stars 67 forks source link

Comparison data types error for flash target #116

Closed flashup closed 5 years ago

flashup commented 5 years ago

Hello, here is compilation error for flash target: Error:(1020, 16) Comparison of Int and UInt might lead to unexpected results

https://github.com/openfl/starling/blob/master/src/starling/rendering/VertexData.hx#L1020

Making oldLength and newLength UInt types resolves the problem.

Thanks.

jgranick commented 5 years ago

Thank you :smile: