fix warning when dbf_type_to_text is called with an unsigned type argument

This commit is contained in:
2024-08-12 14:38:41 +02:00
committed by Andrew Johnson
parent b6fffc2225
commit 457387ed38

View File

@ -676,7 +676,7 @@ union db_access_val{
(type)%(LAST_TYPE+1) == DBR_DOUBLE)
#define dbf_type_to_text(type) \
( ((type) >= -1 && (type) < dbf_text_dim-2) ? \
( ((type+1) >= 0 && (type) < dbf_text_dim-2) ? \
dbf_text[type+1] : dbf_text_invalid )
#define dbf_text_to_type(text, type) \