From 37647ed43a069f44957c3c0baaf39e9f2a2a2000 Mon Sep 17 00:00:00 2001
From: "Tobias S. Josefowitz" <tobij@tobij.de>
Date: Sun, 3 Nov 2013 11:17:49 +0100
Subject: [PATCH] Winbuild: less ssize_t, more ptrdiff_t

---
 src/array.c    | 2 +-
 src/stralloc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/array.c b/src/array.c
index 0c202d4236..112b235382 100644
--- a/src/array.c
+++ b/src/array.c
@@ -2052,7 +2052,7 @@ static struct array *subtract_array_svalue(struct array *a, struct svalue *b)
   if( a->refs > 1 )
   {
     /* We only need to do anything if the value exists in the array. */
-    ssize_t off  = fast_array_search( a, b, 0 );
+    ptrdiff_t off  = fast_array_search( a, b, 0 );
     TYPE_FIELD tmp;
 
     if( off == -1 )
diff --git a/src/stralloc.c b/src/stralloc.c
index 0866f05bbf..82a805e2d3 100644
--- a/src/stralloc.c
+++ b/src/stralloc.c
@@ -128,7 +128,7 @@ PMOD_EXPORT void check_string_range( struct pike_string *str,
 {
   INT32 s_min = MAX_INT32;
   INT32 s_max = MIN_INT32;
-  ssize_t i;
+  ptrdiff_t i;
 
   if( loose || ((str->flags & STRING_CONTENT_CHECKED ) && (!str->size_shift || !max)) )
   {
-- 
GitLab