Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
cf1982d9
Commit
cf1982d9
authored
Apr 24, 2005
by
Eli Zaretskii
Browse files
(re_search_2, re_match_2_internal): Convert second arg
of RE_TRANSLATE to int, to shut up GCC warnings.
parent
e5baf107
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
src/ChangeLog
src/ChangeLog
+3
-0
src/regex.c
src/regex.c
+19
-7
No files found.
src/ChangeLog
View file @
cf1982d9
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.
...
...
src/regex.c
View file @
cf1982d9
...
...
@@ -4290,12 +4290,19 @@ re_search_2 (bufp, str1, size1, str2, size2, startpos, range, regs, stop)
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
])
...
...
@@ -5244,8 +5251,13 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment