From: Dmitry V. Levin Date: Thu, 28 Apr 2016 23:52:28 +0000 (+0000) Subject: Explicitly cast argument of XLAT macro to unsigned int X-Git-Tag: v4.12~242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9f956d279437d5679eb93e19f69d989ec60f79d;p=strace Explicitly cast argument of XLAT macro to unsigned int This is necessary for the upcoming change of xlat.val type. * xlat.h (XLAT): Cast the argument to unsigned int. --- diff --git a/xlat.h b/xlat.h index 28f74027..95d9355f 100644 --- a/xlat.h +++ b/xlat.h @@ -5,7 +5,7 @@ struct xlat { const char *str; }; -# define XLAT(x) { x, #x } -# define XLAT_END { 0, 0 } +# define XLAT(val) { (unsigned)(val), #val } +# define XLAT_END { 0, 0 } #endif