STO comparator fix for Windows: was a data type mismatch from declaration