of RE_TRANSLATE to int, to shut up GCC warnings.
2005-04-24 Eli Zaretskii <eliz@gnu.org>
+ * regex.c (re_search_2, re_match_2_internal): Convert second arg
+ of RE_TRANSLATE to int, to shut up GCC warnings.
+
* fileio.c (Fcopy_file): Doc fix.
[MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
not needed.
d += buf_charlen;
}
else
- while (range > lim
- && !fastmap[RE_TRANSLATE (translate, *d)])
- {
- d++;
- range--;
- }
+ {
+ /* Convert *d to integer to shut up GCC's
+ whining about comparison that is always
+ true. */
+ int di = *d;
+
+ while (range > lim
+ && !fastmap[RE_TRANSLATE (translate, di)])
+ {
+ di = *(++d);
+ range--;
+ }
+ }
}
else
while (range > lim && !fastmap[*d])
else
do
{
+ /* Avoid compiler whining about comparison being
+ always true. */
+ int di;
+
PREFETCH ();
- if (RE_TRANSLATE (translate, *d) != *p++)
+ di = *d;
+ if (RE_TRANSLATE (translate, di) != *p++)
{
d = dfail;
goto fail;