From 711c932380759e97f0fe383a19173b7d8ecdcc0d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae <geoff@hostfission.com> Date: Wed, 5 Mar 2025 12:48:20 +1100 Subject: [PATCH] [all] common: fix compilation on clang --- common/src/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/option.c b/common/src/option.c index 0fe4a839..a0de814b 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -952,7 +952,7 @@ float option_get_float(const char * module, const char * name) if (!o) { DEBUG_ERROR("BUG: Failed to get the value for option %s:%s", module, name); - return NAN; + return 0.0f; } DEBUG_ASSERT(o->type == OPTION_TYPE_FLOAT); return o->value.x_float;