changeset 50629:36d13cf0f114

(Fsubstitute_command_keys): Remove spurious casts.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 17 Apr 2003 21:58:34 +0000
parents 37a13dfcd8c2
children dfbdcffdcfc9
files src/doc.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/doc.c	Thu Apr 17 21:55:18 2003 +0000
+++ b/src/doc.c	Thu Apr 17 21:58:34 2003 +0000
@@ -725,7 +725,7 @@
   bsize = SBYTES (string);
   bufp = buf = (unsigned char *) xmalloc (bsize);
 
-  strp = (unsigned char *) SDATA (string);
+  strp = SDATA (string);
   while (strp < SDATA (string) + SBYTES (string))
     {
       if (strp[0] == '\\' && strp[1] == '=')
@@ -761,7 +761,7 @@
 	  start = strp;
 	  start_idx = start - SDATA (string);
 
-	  while ((strp - (unsigned char *) SDATA (string)
+	  while ((strp - SDATA (string)
 		  < SBYTES (string))
 		 && *strp != ']')
 	    strp++;
@@ -770,7 +770,7 @@
 	  strp++;		/* skip ] */
 
 	  /* Save STRP in IDX.  */
-	  idx = strp - (unsigned char *) SDATA (string);
+	  idx = strp - SDATA (string);
 	  tem = Fintern (make_string (start, length_byte), Qnil);
 
 	  /* Note the Fwhere_is_internal can GC, so we have to take
@@ -821,8 +821,7 @@
 	  start = strp;
 	  start_idx = start - SDATA (string);
 
-	  while ((strp - (unsigned char *) SDATA (string)
-		  < SCHARS (string))
+	  while ((strp - SDATA (string) < SCHARS (string))
 		 && *strp != '}' && *strp != '>')
 	    strp++;
 
@@ -830,7 +829,7 @@
 	  strp++;			/* skip } or > */
 
 	  /* Save STRP in IDX.  */
-	  idx = strp - (unsigned char *) SDATA (string);
+	  idx = strp - SDATA (string);
 
 	  /* Get the value of the keymap in TEM, or nil if undefined.
 	     Do this while still in the user's current buffer