HaxeFoundation / HaxeFoundation/hxcpp

Cached boxed numerics are always boxed as int

Open
#1,278 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

Discovered in https://github.com/HaxeFoundation/haxe/pull/12410, doubles and int64s have the same small boxed value caching done, but they're put in the same cache as ints and are boxed as ints.
So when a int64 is boxed and it's boxed form is pulled from the cache it will report its type as just int.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.