Skip to content

Commit 7212ba3

Browse files
fixed comment
Co-authored-by: Niels Dossche <[email protected]>
1 parent 4d6e4b1 commit 7212ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/bcmath/libbcmath/src/str2num.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bool bc_str2num(bc_num *num, char *str, size_t scale, bool auto_scale)
6969
/* decimal point */
7070
decimal_point = (*ptr == '.') ? ptr : NULL;
7171

72-
/* If a string other than numbers exists */
72+
/* If a non-digit and non-decimal-point indicator is in the string, i.e. an invalid character */
7373
if (!decimal_point && *ptr != '\0') {
7474
goto fail;
7575
}

0 commit comments

Comments
 (0)