Cached boxed numerics are always boxed as int

未关闭
#1,278 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp
领域
backend

调研方向

首先跟踪 runtime 中针对 ints、doubles 和 int64s 的小值 boxing 与 caching 路径,并使用 issue 中描述的行为作为复现依据。确认已缓存的 boxed doubles 和 int64s 报告的是它们自身的类型,而不是 int;当 cache 不再导致该类型不匹配时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C++
星标
330
派生
233
平均合并
7 小时 13 分钟
30 天内合并 PR
17

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

HaxeFoundation/hxcpp 的其他 Issue

查看 HaxeFoundation/hxcpp 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。