Use INT_MAX instead of LONG_MAX since the variable being compared is an int, not a long.
Use INT_MAX instead of LONG_MAX since the variable being compared
is an int, not a long.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase