summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/validity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/validity.cpp')
-rw-r--r--src/emu/validity.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/validity.cpp b/src/emu/validity.cpp
index 7447445a519..01d56378939 100644
--- a/src/emu/validity.cpp
+++ b/src/emu/validity.cpp
@@ -719,11 +719,11 @@ void validity_checker::validate_analog_input_field(ioport_field &field)
if (field.type() == IPT_POSITIONAL || field.type() == IPT_POSITIONAL_V)
{
int shift;
- for (shift = 0; shift <= 31 && (~field.mask() & (1 << shift)) != 0; shift++) ;
+ for (shift = 0; shift <= 31 && (~field.mask() & (1 << shift)) != 0; shift++) { }
// convert the positional max value to be in the bitmask for testing
- INT32 analog_max = field.maxval();
- analog_max = (analog_max - 1) << shift;
+ //INT32 analog_max = field.maxval();
+ //analog_max = (analog_max - 1) << shift;
// positional port size must fit in bits used
if ((field.mask() >> shift) + 1 < field.maxval())