Skip to content

Something wrong with integer type #7992

Closed
@yurasin

Description

@yurasin

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