aboutsummaryrefslogtreecommitdiff
path: root/src/seq.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-01-05 12:28:13 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-01-05 12:28:13 +0100
commit6b5810498fe79b0ce2ca305c0aed95b6c7b631a4 (patch)
tree51754ad9d910ed0e9a611df0926449beaa8fdd8d /src/seq.c
parent93a32a30cf3b82b593e112bdaf2b2625d94b0262 (diff)
downloadcoreutils-6b5810498fe79b0ce2ca305c0aed95b6c7b631a4.tar.gz
coreutils-6b5810498fe79b0ce2ca305c0aed95b6c7b631a4.tar.bz2
coreutils-6b5810498fe79b0ce2ca305c0aed95b6c7b631a4.zip
Added xargs utility, Added -std=c99 flag
Diffstat (limited to 'src/seq.c')
-rw-r--r--src/seq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/seq.c b/src/seq.c
index 8307fc4..20d65cd 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -109,13 +109,13 @@ int main(int argc, char **argv)
{
int precision = MAX(first.precision, increment.precision);
if (!padding)
- printf("%.*llf", precision, first.value);
+ printf("%.*Lf", precision, first.value);
else
{
int width = MAX(last.integer_len, first.integer_len);
if (precision != 0)
width += precision + 1;
- printf("%0*.*llf", width, precision, first.value);
+ printf("%0*.*Lf", width, precision, first.value);
}
first.value += increment.value;
if (increment.value > 0 ? (first.value <= last.value) : (first.value >= last.value))