summaryrefslogtreecommitdiff
path: root/ext/io/console
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-05 16:31:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-05 21:26:15 +0900
commit83e62d77981adeb2968a49c3176a7a940c8ee29e (patch)
treec9404eee9cbe4ac0baf1eee0a8bf460a41d934aa /ext/io/console
parent4272395982dc442dbd38fef514116e0bad9f9303 (diff)
[ruby/io-console] Shrink struct query_args
https://github.com/ruby/io-console/commit/720be0a3e5
Diffstat (limited to 'ext/io/console')
-rw-r--r--ext/io/console/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 3496a63..2e24670 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -1223,8 +1223,8 @@ console_key_pressed_p(VALUE io, VALUE k)
}
#else
struct query_args {
- const char *qstr;
- int opt;
+ char qstr[6];
+ unsigned char opt;
};
static int