Skip to content

Commit 9a91c7a

Browse files
committed
patch 8.0.1229: condition in vim_str2nr() is always true
Problem: Condition in vim_str2nr() is always true. (Nikolai Pavlov) Solution: Remove the condition. (Closes #2259)
1 parent 0e19fc0 commit 9a91c7a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/charset.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,8 +1907,7 @@ vim_str2nr(
19071907
pre = 0; /* can't be octal */
19081908
break;
19091909
}
1910-
if (ptr[n] >= '0')
1911-
pre = '0'; /* assume octal */
1910+
pre = '0'; /* assume octal */
19121911
if (n == maxlen)
19131912
break;
19141913
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1229,
764766
/**/
765767
1228,
766768
/**/

0 commit comments

Comments
 (0)