mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
string.c (str_succ): remove a unnecessary assignment
This change will suppress Coverity Scan warnings
This commit is contained in:
parent
198281a71d
commit
3fd086ed56
1 changed files with 0 additions and 1 deletions
1
string.c
1
string.c
|
@ -4142,7 +4142,6 @@ str_succ(VALUE str)
|
||||||
if (neighbor == NEIGHBOR_NOT_CHAR && last_alnum) {
|
if (neighbor == NEIGHBOR_NOT_CHAR && last_alnum) {
|
||||||
if (ISALPHA(*last_alnum) ? ISDIGIT(*s) :
|
if (ISALPHA(*last_alnum) ? ISDIGIT(*s) :
|
||||||
ISDIGIT(*last_alnum) ? ISALPHA(*s) : 0) {
|
ISDIGIT(*last_alnum) ? ISALPHA(*s) : 0) {
|
||||||
s = last_alnum;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue