From cdc8eb7ad393c049d3fdf520c6fd1475d33c3a73 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 10 Feb 2025 12:56:29 -0500 Subject: Fully parenthesize expressions --- src/errno_status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/errno_status.c') diff --git a/src/errno_status.c b/src/errno_status.c index d992d02..ed09b24 100644 --- a/src/errno_status.c +++ b/src/errno_status.c @@ -41,7 +41,7 @@ zix_errno_status(const int e) {0, ZIX_STATUS_ERROR}, // Fallback mapping }; - static const size_t n_mappings = sizeof(map) / sizeof(Mapping) - 1U; + static const size_t n_mappings = (sizeof(map) / sizeof(Mapping)) - 1U; // Find the index of the matching mapping (or leave it at the fallback entry) size_t m = 0; -- cgit v1.2.1