From a9f956d279437d5679eb93e19f69d989ec60f79d Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 28 Apr 2016 23:52:28 +0000 Subject: [PATCH] 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. --- xlat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.1