Skip to content

String constructor and concat with int64_t results in "ld" #7760

Closed
@TD-er

Description

@TD-er

Board

Any

Device Description

Hardware should not matter, but this test was done on a:
ESP32-D0WDQ5-V3

Hardware Configuration

Not important

Version

v2.0.6

IDE Name

PlatformIO

Operating System

Windows 11

Flash frequency

40MHz

PSRAM enabled

no

Upload speed

115200

Description

Constructor and concat with long long (int64_t) is not working as it should.

Sketch

++
  int64_t testvalue = 123;
  String test_constructor(testvalue);
  String test_concat;
  test_concat = F("test_concat: '");
  test_concat += testvalue;
  test_concat += F("' 123");


Result:
test_constructor: `ld`
test_concat: `test_concat: 'ld' 123`

Debug Message

-

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions