Fix IF_SEXT(val, 32).  The constants need to have type long to handle size > 16.
Fix IF_SEXT(val, 32).  The constants need to have type long to
handle size > 16.

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