arduino / arduino/ArduinoCore-API
Extend String to print 64-bit integers
未关闭
- 主要语言
- C++
- 星标
- 306
- 派生
- 150
- PR 合并指标
- 30 天内没有已合并 PR
描述
`String(long long int)` and `String(unsigned long long int)` are not defined for relevant platforms, so `String()` is unable to parse 64-bit integers. A minimal non-working example would be:
```cpp
#include
void setup() {
String(1LL); // String(1L) compiles
}
void loop() {
}
```
Which produces an error `call of overloaded 'String(long long int)' is ambiguous`.
贡献指南
这个仓库没有索引到贡献指南
调研方向
已有一个开放的 pull request (#277) 处理了这个问题,因此请先审查它。从通过 Arduino.h 使用的 String 重载开始,将现有的长整数行为与缺失的 64 位情况进行比较;当 String(1LL) 能够在没有重载歧义错误的情况下编译时,最小示例就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- api, embedded-iot
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100