File
common/inc/gx_api.h
#if defined(GUIX_5_4_0_COMPATIBILITY)
#define gx_prompt_text_color_set(a, b, c) _gx_prompt_text_color_set((GX_PROGRESS_BAR *)a, b, c, b)
#else
#define gx_prompt_text_color_set _gx_prompt_text_color_set
#endif
Description
When GUIX_5_4_0_COMPATIBILITY is defined, the macro gx_prompt_text_color_set incorrectly casts the first argument to GX_PROGRESS_BAR * instead of GX_PROMPT *. This is a copy-paste error, likely copied from the gx_progress_bar_text_color_set macro definition directly above it.
This causes a type mismatch and can lead to undefined behavior or compiler warnings when calling gx_prompt_text_color_set on a GX_PROMPT widget in compatibility mode.
Steps to Reproduce
Define GUIX_5_4_0_COMPATIBILITY in your project
Call gx_prompt_text_color_set with a GX_PROMPT * pointer
File
common/inc/gx_api.hDescription
When
GUIX_5_4_0_COMPATIBILITYis defined, the macrogx_prompt_text_color_setincorrectly casts the first argument toGX_PROGRESS_BAR *instead ofGX_PROMPT *. This is a copy-paste error, likely copied from thegx_progress_bar_text_color_setmacro definition directly above it.This causes a type mismatch and can lead to undefined behavior or compiler warnings when calling
gx_prompt_text_color_seton aGX_PROMPTwidget in compatibility mode.Steps to Reproduce
Define
GUIX_5_4_0_COMPATIBILITYin your projectCall
gx_prompt_text_color_setwith aGX_PROMPT *pointer