aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw.c b/pw.c
index ff4b352..549ab50 100644
--- a/pw.c
+++ b/pw.c
@@ -615,7 +615,7 @@ static void drawstatus(pwstate *pw)
if (pw->curcmd[pw->editpos] != 0) {
putchar('\r');
if (pw->editpos > 0)
- printf("\033[%dC", pw->editpos);
+ printf("\033[%dC", (int) pw->editpos);
}
}
fflush(stdout);