File smalltalk-3.2.5-64bit.patch of Package smalltalk

--- libgst/input.c	2013-04-08 04:24:12.000000000 +0900
+++ libgst/input.c	2014-05-03 11:11:04.489110988 +0900
@@ -251,7 +251,7 @@
 
   newStream = push_new_stream (STREAM_FILE);
   newStream->st_file.fd = fd;
-  newStream->st_file.buf = xmalloc (1024);
+  newStream->st_file.buf = xmalloc ((size_t)1024);
   newStream->st_file.ptr = newStream->st_file.buf;
   newStream->st_file.end = newStream->st_file.buf;
   newStream->fileName = fileName;
@@ -911,7 +911,7 @@
 add_completion (const char *str,
 		int len)
 {
-  char *s = xmalloc (len + 1);
+  char *s = xmalloc ((size_t)len + 1);
   memcpy (s, str, len);
   s[len] = 0;
 
@@ -919,7 +919,7 @@
     {
       free_items += 50;
       completions =
-	(char **) xrealloc (completions, sizeof (char *) * (count + 50));
+	(char **) xrealloc (completions, (size_t)sizeof (char *) * (count + 50));
     }
 
   free_items--;
openSUSE Build Service is sponsored by