From: Dmitry V. Levin Date: Wed, 21 Dec 2016 14:12:17 +0000 (+0000) Subject: evdev: cast tcp->u_rval to kernel_ureg_t instead of unsigned long X-Git-Tag: v4.16~300 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a06073fbbbb230eef437023e7e6f6e312ea20586;p=strace evdev: cast tcp->u_rval to kernel_ureg_t instead of unsigned long * evdev.c (decode_bitset): Cast tcp->u_rval to kernel_ureg_t instead of unsigned long. --- diff --git a/evdev.c b/evdev.c index 2d02b3c7..779b02ed 100644 --- a/evdev.c +++ b/evdev.c @@ -268,7 +268,7 @@ decode_bitset(struct tcb *tcp, long arg, const struct xlat decode_nr[], tprints(", "); unsigned int size; - if ((unsigned long) tcp->u_rval > max_nr) + if ((kernel_ureg_t) tcp->u_rval > max_nr) size = max_nr; else size = tcp->u_rval;