[PATCH] Fix type mismatch warning when compiling on Windows