summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-01-15 05:07:10 -0700
committerKarl Williamson <khw@cpan.org>2020-01-19 09:57:31 -0700
commit17d6187b6af20688dcba5e3c84165e99d9c4c1ce (patch)
tree57ba8ceedd2611028e20a5f91a7427b94f8e28da /numeric.c
parent3f8c4d7479702f0eb269a85fecd74f47120b00f0 (diff)
downloadperl-17d6187b6af20688dcba5e3c84165e99d9c4c1ce.tar.gz
numeric.c: White-space only
Indent code that the previous commit added an enclosing block surrounding it. And vertically align some comments
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/numeric.c b/numeric.c
index 3a50d6dd4d..ad75f63373 100644
--- a/numeric.c
+++ b/numeric.c
@@ -535,24 +535,24 @@ Perl_grok_bin_oct_hex(pTHX_ const char *start,
if (*s) {
if ( ! (input_flags & PERL_SCAN_SILENT_ILLDIGIT)
- && ckWARN(WARN_DIGIT))
- {
- if (base != 8) {
- Perl_warner(aTHX_ packWARN(WARN_DIGIT),
- "Illegal %s digit '%c' ignored",
- ((base == 2)
- ? "binary"
- : "hexadecimal"),
- *s);
- }
- else if (isDIGIT(*s)) { /* octal base */
-
- /* Allow \octal to work the DWIM way (that is, stop scanning as
- * soon as non-octal characters are seen, complain only if
- * someone seems to want to use the digits eight and nine.
- * Since we know it is not octal, then if isDIGIT, must be an 8
- * or 9). */
- Perl_warner(aTHX_ packWARN(WARN_DIGIT),
+ && ckWARN(WARN_DIGIT))
+ {
+ if (base != 8) {
+ Perl_warner(aTHX_ packWARN(WARN_DIGIT),
+ "Illegal %s digit '%c' ignored",
+ ((base == 2)
+ ? "binary"
+ : "hexadecimal"),
+ *s);
+ }
+ else if (isDIGIT(*s)) { /* octal base */
+
+ /* Allow \octal to work the DWIM way (that is, stop
+ * scanning as soon as non-octal characters are seen,
+ * complain only if someone seems to want to use the digits
+ * eight and nine. Since we know it is not octal, then if
+ * isDIGIT, must be an 8 or 9). */
+ Perl_warner(aTHX_ packWARN(WARN_DIGIT),
"Illegal octal digit '%c' ignored", *s);
}
}
@@ -1044,8 +1044,8 @@ Perl_grok_number_flags(pTHX_ const char *pv, STRLEN len, UV *valuep, U32 flags)
* belong in a number at all (unless it's a radix character in a weird
* locale). Given this, it's far more likely to be a minus than the
* others. (On EBCDIC it is one of 42, 44, 46, 48, 4A, 4C, 4E, (not 40
- * because can't be a space) 60, 62, 64, 66, 68, 6A, 6C, 6E. Again, only
- * potentially a weird radix character, or 4E='+', or 60='-') */
+ * because can't be a space) 60, 62, 64, 66, 68, 6A, 6C, 6E. Again,
+ * only potentially a weird radix character, or 4E='+', or 60='-') */
if (LIKELY(*s == '-')) {
s++;
numtype = IS_NUMBER_NEG;