Skip to content

Compile warning: negative left shifts #48

@physnoct

Description

@physnoct

home/user/.arduino15/packages/XMegaForArduino/hardware/avr/0.9.2/cores/xmega/HardwareSerial.cpp: In function 'uint16_t temp_get_baud(long unsigned int, uint8_t)':
/home/user/.arduino15/packages/XMegaForArduino/hardware/avr/0.9.2/cores/xmega/HardwareSerial.cpp:1063:20: warning: left shift of negative value [-Wshift-negative-value]
(uint16_t)(-1 << 12) | 137, // 57600

It goes on several lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions