summaryrefslogtreecommitdiff
path: root/src/libopts/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libopts/numeric.c')
-rw-r--r--src/libopts/numeric.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libopts/numeric.c b/src/libopts/numeric.c
index 66af1508d4..bbb43ccdcd 100644
--- a/src/libopts/numeric.c
+++ b/src/libopts/numeric.c
@@ -10,7 +10,7 @@
/*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
- * AutoOpts is Copyright (C) 1992-2015 by Bruce Korb - all rights reserved
+ * AutoOpts is Copyright (C) 1992-2018 by Bruce Korb - all rights reserved
*
* AutoOpts is available under any one of two licenses. The license
* in use must be one of these two and the choice is under the control
@@ -136,14 +136,14 @@ optionNumericVal(tOptions * opts, tOptDesc * od)
if ((od->fOptState & OPTST_SCALED_NUM) != 0)
switch (*(pz++)) {
case NUL: pz--; break;
- case 't': val *= 1000;
- case 'g': val *= 1000;
- case 'm': val *= 1000;
+ case 't': val *= 1000; /* FALLTHROUGH */
+ case 'g': val *= 1000; /* FALLTHROUGH */
+ case 'm': val *= 1000; /* FALLTHROUGH */
case 'k': val *= 1000; break;
- case 'T': val *= 1024;
- case 'G': val *= 1024;
- case 'M': val *= 1024;
+ case 'T': val *= 1024; /* FALLTHROUGH */
+ case 'G': val *= 1024; /* FALLTHROUGH */
+ case 'M': val *= 1024; /* FALLTHROUGH */
case 'K': val *= 1024; break;
default: goto bad_number;