From 7399bf8369c7ba27feaf5a67a20a92cb0f7d3ba0 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 9 Jun 2026 05:58:51 +0000 Subject: [PATCH] fmt_scaled: make regress compile again with old gcc looks good to claudio ok djm --- regress/lib/libutil/fmt_scaled/fmt_test.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/regress/lib/libutil/fmt_scaled/fmt_test.c b/regress/lib/libutil/fmt_scaled/fmt_test.c index 47bc0041c91..cf5ee5877ad 100644 --- a/regress/lib/libutil/fmt_scaled/fmt_test.c +++ b/regress/lib/libutil/fmt_scaled/fmt_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fmt_test.c,v 1.20 2026/06/06 23:50:28 djm Exp $ */ +/* $OpenBSD: fmt_test.c,v 1.21 2026/06/09 05:58:51 tb Exp $ */ /* * Combined tests for fmt_scaled and scan_scaled. @@ -150,12 +150,12 @@ fmt_test(void) #define IMPROBABLE (-42) -static const long long K = 1024LL; -static const long long M = K * K; -static const long long G = M * K; -static const long long T = G * K; -static const long long P = T * K; -static const long long E = P * K; +#define K (1024LL) +#define M (K * K) +#define G (M * K) +#define T (G * K) +#define P (T * K) +#define E (P * K) struct { /* the test cases */ char *input;