summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
-rw-r--r--src/main.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index e3f8370..89aae82 100644
--- a/src/main.c
+++ b/src/main.c
@@ -660,7 +660,7 @@ void vb_statusbar_update(Client *c)
} else if (c->state.scroll_percent == 100) {
g_string_append(status, " Bot");
} else {
- g_string_append_printf(status, " %d%%", c->state.scroll_percent);
+ g_string_append_printf(status, " %hu%%", c->state.scroll_percent);
}
gtk_label_set_text(GTK_LABEL(c->statusbar.right), status->str);
diff --git a/src/main.h b/src/main.h
index cc1e50f..7ee5343 100644
--- a/src/main.h
+++ b/src/main.h
@@ -170,7 +170,7 @@ struct State {
MessageType input_type;
StatusType status_type;
guint64 scroll_max; /* Maxmimum scrollable height of the document. */
- guint scroll_percent; /* Current position of the viewport in document (percent). */
+ guint16 scroll_percent; /* Current position of the viewport in document (percent). */
guint64 scroll_top; /* Current position of the viewport in document (pixel). */
char *title; /* Window title of the client. */