Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
diff --git a/Python/getcwd.c b/Python/getcwd.c
index e720c99..7005869 100644
--- a/Python/getcwd.c
+++ b/Python/getcwd.c
@@ -62,7 +62,7 @@
 		return NULL;
 	}
 	ret = getwd(localbuf);
-	if (ret != NULL && strlen(localbuf) >= size) {
+	if (ret != NULL && strlen(localbuf) >= (size_t)size) {
 		errno = ERANGE;
 		return NULL;
 	}