Skip to content

Commit 5b447a6

Browse files
authored
Merge pull request #1505 from espruino/MaBecker-patch-2
fix warning: array subscript is above array bounds
2 parents 0080d8f + eeeeb9c commit 5b447a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsdevices.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ typedef enum {
6363

6464
JshSerialDeviceState jshSerialDeviceStates[1+EV_SERIAL_MAX-EV_SERIAL_DEVICE_STATE_START];
6565
/// Device clear to send hardware flow control pins (PIN_UNDEFINED if not used)
66-
Pin jshSerialDeviceCTSPins[EV_SERIAL_MAX-EV_SERIAL_DEVICE_STATE_START];
66+
Pin jshSerialDeviceCTSPins[1+EV_SERIAL_MAX-EV_SERIAL_DEVICE_STATE_START];
6767
#define TO_SERIAL_DEVICE_STATE(X) ((X)-EV_SERIAL_DEVICE_STATE_START)
6868

6969
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)