# HG changeset patch # User Stefan Monnier # Date 1050616714 0 # Node ID 36d13cf0f1149f91e2e591f90b513fc214649896 # Parent 37a13dfcd8c2cddfa699741adba1ea9b59ab0635 (Fsubstitute_command_keys): Remove spurious casts. diff -r 37a13dfcd8c2 -r 36d13cf0f114 src/doc.c --- 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