Fix for wsplice to avoid warnings on some compilers (MSVC for example)

This change simply corrects a type comparison issue in wsplice that some compilers may issue warnings about, most notably MSVC2012.