summaryrefslogtreecommitdiffstats
path: root/src/m_prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_prompt.c')
-rw-r--r--src/m_prompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/m_prompt.c b/src/m_prompt.c
index e9589a5..4f80627 100644
--- a/src/m_prompt.c
+++ b/src/m_prompt.c
@@ -49,7 +49,7 @@ static void m_update_psx(uint8_t x, t_msh *msh)
char var[ARG_MAX];
char psx[5];
- ft_sprintf(psx, "$PS%hhu", x);
+ ft_sprintf(psx, "$PS%hu", (uint16_t)x);
u_get_var_value(var, psx, ARG_MAX, msh);
if (var[0] == C_NUL)
{