aboutsummaryrefslogtreecommitdiff
path: root/variants/mega/pins_arduino.h
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2014-02-12 19:37:09 +0100
committerMatthijs Kooijman <matthijs@stdin.nl>2014-02-14 10:25:34 +0100
commit02a5ae97d4604f50121f743ae42ab244a9ea49c1 (patch)
tree8c3bf1fe50fcf3a5522a96a87ed7bd82cecf8a3f /variants/mega/pins_arduino.h
parent6c7f786d3de10011c551fba44d40dfd1b59a4985 (diff)
In HardwareSerial, don't use int for buffer indices
The index attributes have been uint8_t for a while, so there is no point in using int for local variables. This should allow the compiler to generate slightly more efficient code, but (at least on gcc 4.8.2) it also confuses the register allocator, causing this change to increase code size by 2 bytes instead due to extra push/pop instructions (but this will probably change in the future if the compiler improves).
Diffstat (limited to 'variants/mega/pins_arduino.h')
0 files changed, 0 insertions, 0 deletions