Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Something wrong with integer type #7992

Closed
Labels
Type: DuplicateAnother item already exists for this topic
@yurasin

Description

Compiling integer varies from previous IDE version
In 1.8.6 it seems to be bad, not in range -32768..+32768
At least when compiled to Arduino Nano.

Simplest check:
void setup() {
Serial.begin(115200);
}
void loop() {
for (int i = 30000;; i++) Serial.println(i);
}

And another check with even more strange behavior:
void setup() {
Serial.begin(115200);
}
void loop() {
for (int i = 33000;; i++) Serial.println(i);
}

In version 1.6.5 everything OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DuplicateAnother item already exists for this topic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /