Mercurial > hg > dmlib
diff src/dmtimeline.c @ 2586:9807ae37ad69
Require stdbool.h, we require C11 now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 15:59:22 +0200 |
parents | 7190f4fbc0dd |
children |
line wrap: on
line diff
--- a/src/dmtimeline.c Thu Dec 08 15:56:36 2022 +0200 +++ b/src/dmtimeline.c Thu Dec 08 15:59:22 2022 +0200 @@ -7,15 +7,15 @@ #include "dmengine.h" -static BOOL dmLoadFloatValue(DMResource *res, DMFloat *val) +static bool dmLoadFloatValue(DMResource *res, DMFloat *val) { char tmp[DT_FLOAT_STORE_SIZE + 1]; if (!dmf_read_str(res, &tmp, DT_FLOAT_STORE_SIZE)) - return FALSE; + return false; tmp[DT_FLOAT_STORE_SIZE] = 0; *val = atof(tmp); - return TRUE; + return true; }