You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gx_prompt_text_color_set macro incorrectly casts to GX_PROGRESS_BAR * instead of GX_PROMPT * when GUIX_5_4_0_COMPATIBILITY is defined #160
#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
Activity