diff --git a/libs/pcre/pcretest.c b/libs/pcre/pcretest.c
index 431378c6dc..101822c92d 100644
--- a/libs/pcre/pcretest.c
+++ b/libs/pcre/pcretest.c
@@ -794,7 +794,7 @@ offsets = (int *)malloc(size_offsets_max * sizeof(int));
 if (offsets == NULL)
   {
   printf("** Failed to get %d bytes of memory for offsets vector\n",
-    size_offsets_max * sizeof(int));
+    size_offsets_max * (int)sizeof(int));
   yield = 1;
   goto EXIT;
   }
@@ -1736,7 +1736,7 @@ while (!done)
           if (offsets == NULL)
             {
             printf("** Failed to get %d bytes of memory for offsets vector\n",
-              size_offsets_max * sizeof(int));
+              size_offsets_max * (int)sizeof(int));
             yield = 1;
             goto EXIT;
             }