diff options
author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:23:04 -0300 |
---|---|---|
committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:23:04 -0300 |
commit | 76e1a7480ed7a77a442dee8b63574c8516cacdd2 (patch) | |
tree | f4b7997875f37b1ae97ea5f4773aebfa9a96965a /modules/benchmark/guibench.c | |
parent | 4212b15b19d6c9db8d2f9fed92e5b9675b2cfe9c (diff) | |
parent | f70f209239d51a5893f8f9f080b19b6ee94ff4af (diff) |
Update upstream source from tag 'upstream/2.0.9pre'
Update to upstream version '2.0.9pre'
with Debian dir 817dddd03e0e9bc80d4f80e98431c08f4e402b1e
Diffstat (limited to 'modules/benchmark/guibench.c')
-rw-r--r-- | modules/benchmark/guibench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/benchmark/guibench.c b/modules/benchmark/guibench.c index 2b4f3b11..e0f8351e 100644 --- a/modules/benchmark/guibench.c +++ b/modules/benchmark/guibench.c @@ -68,7 +68,7 @@ static gchar *phrase = NULL; static gboolean keypress_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data) { const int magic[] = { 0x1b, 0x33, 0x3a, 0x35, 0x51 }; - const int states[] = { 0xff52, 0xff52, 0xff54, 0xff54, + const unsigned int states[] = { 0xff52, 0xff52, 0xff54, 0xff54, 0xff51, 0xff53, 0xff51, 0xff53, 0x62, 0x61 }; static int state = 0; @@ -80,7 +80,7 @@ static gboolean keypress_event(GtkWidget *widget, GdkEventKey *event, gpointer u } if (state == G_N_ELEMENTS(states)) { - int i; + unsigned int i; for (i = 0; i < G_N_ELEMENTS(magic); i++) { phrase[i + 6] = magic[i] ^ (states[i] & (states[i] >> 8)); |