Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend String to print 64-bit integers #156

Open
drws opened this issue Sep 21, 2021 · 1 comment
Open

Extend String to print 64-bit integers #156

drws opened this issue Sep 21, 2021 · 1 comment

Comments

@drws
Copy link

drws commented Sep 21, 2021

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:

#include <Arduino.h>

void setup() {
  String(1LL); // String(1L) compiles
}

void loop() {
}

Which produces an error call of overloaded 'String(long long int)' is ambiguous.

@drws
Copy link
Author

drws commented May 19, 2022

This has been solved lately in the arduino-esp32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant