diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-10-10 00:50:56 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-10-10 00:50:56 +0100 |
commit | fd769d621e95cdcf6f4600448c8431d27233c090 (patch) | |
tree | a02753d022968dee94559bcd6a4e1df6bf5eb8de /driver-csi.c | |
parent | 37156ad580a07413383d3ca5d95f19ea1bc1f716 (diff) | |
download | termo-fd769d621e95cdcf6f4600448c8431d27233c090.tar.gz termo-fd769d621e95cdcf6f4600448c8431d27233c090.tar.xz termo-fd769d621e95cdcf6f4600448c8431d27233c090.zip |
'int' might not be wide enough to hold any Unicode codepoint; use 'long'
Diffstat (limited to 'driver-csi.c')
-rw-r--r-- | driver-csi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver-csi.c b/driver-csi.c index 33e7342..8633157 100644 --- a/driver-csi.c +++ b/driver-csi.c @@ -164,7 +164,7 @@ static termkey_result getkey_csi(termkey_t *tk, size_t introlen, termkey_key *ke } unsigned char cmd = CHARAT(csi_end); - int arg[16]; + long arg[16]; char present = 0; int args = 0; @@ -226,7 +226,7 @@ static termkey_result getkey_csi(termkey_t *tk, size_t introlen, termkey_key *ke key->code.sym = TERMKEY_SYM_UNKNOWN; if(key->code.sym == TERMKEY_SYM_UNKNOWN) - fprintf(stderr, "CSI function key %d\n", arg[0]); + fprintf(stderr, "CSI function key %ld\n", arg[0]); } else { // We know from the logic above that cmd must be >= 0x40 and < 0x80 @@ -236,7 +236,7 @@ static termkey_result getkey_csi(termkey_t *tk, size_t introlen, termkey_key *ke key->modifiers |= csi->csi_ss3s[cmd - 0x40].modifier_set; if(key->code.sym == TERMKEY_SYM_UNKNOWN) - fprintf(stderr, "CSI arg1=%d arg2=%d cmd=%c\n", arg[0], arg[1], cmd); + fprintf(stderr, "CSI arg1=%ld arg2=%ld cmd=%c\n", arg[0], arg[1], cmd); } return TERMKEY_RES_KEY; |