arduino / arduino/ArduinoCore-sam

Arduino Zero (SAM) SerialUSB.print(-2147483648);

Open
#86 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
91
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Printing at the Arduino Zero (SAM) gives an error with:

SerialUSB.print(-2147483648);

Error message:
exit status 1
call of overloaded 'print(long long int)' is ambiguous

This goes well:
int s = -2147483648;
SerialUSB << s << endl;

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the shown SerialUSB.print(-2147483648) sketch and compare it with the working int variable example. Start by locating the SerialUSB print overload declarations and implementation; done means the literal compiles and prints the expected value without the ambiguous-overload error.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.