diff options
Diffstat (limited to 'src/emu/ioport.cpp')
-rw-r--r-- | src/emu/ioport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/ioport.cpp b/src/emu/ioport.cpp index 4d106912d7b..6ffff130915 100644 --- a/src/emu/ioport.cpp +++ b/src/emu/ioport.cpp @@ -1388,9 +1388,9 @@ ioport_field_live::ioport_field_live(ioport_field &field, analog_field *analog) if (field.type_class() == INPUT_CLASS_KEYBOARD && field.specific_name() == nullptr) { // loop through each character on the field - for (int which = 0; ; which++) + for (int which = 0; which < 4; which++) { - char32_t ch = field.keyboard_code(which); + char32_t const ch = field.keyboard_code(which); if (ch == 0) break; name.append(string_format("%-*s ", std::max(SPACE_COUNT - 1, 0), field.key_name(which))); |