changeset 5876:0cebf04c18b5

Use cast for malloc call to satisfy VS6
author Vin Shelton <acs@xemacs.org>
date Tue, 24 Mar 2015 16:49:53 -0400
parents 4949ccab25f1
children abe88cd200c9
files src/ChangeLog src/data.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Mar 24 15:50:43 2015 -0400
+++ b/src/ChangeLog	Tue Mar 24 16:49:53 2015 -0400
@@ -1,5 +1,8 @@
 2015-03-24  Vin Shelton  <acs@xemacs.org>
 
+	* data.c (build_fixnum_to_char_map): Cast cctable malloc call to
+	avoid warning from VS6.
+
 	* process-unix.c:  Move disconnect_controlling_terminal() call
 	later in create_process_unix().  This is necessary for Cygwin, but
 	seems to work on linux (at least), too.
--- a/src/data.c	Tue Mar 24 15:50:43 2015 -0400
+++ b/src/data.c	Tue Mar 24 16:49:53 2015 -0400
@@ -1522,7 +1522,7 @@
   map_char_table (radix_table, &ctr, find_highest_value, &highest_value);
   cclen = XFIXNUM (highest_value) + 1;
 
-  cctable = malloc (sizeof (Ichar) * cclen);
+  cctable = (Ichar *)malloc (sizeof (Ichar) * cclen);
   if (cctable == NULL)
     {
       out_of_memory ("Could not allocate data for `digit-char'", Qunbound);