From c90fb6cd796e0ca8c2fcffef8d1f8a8e6245b8ae Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Thu, 19 Apr 2018 15:46:49 +1000 Subject: hdat_to_dt: hash_prop the same on all platforms Signed-off-by: Stewart Smith --- hdata/test/hdata_to_dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c index f7ed65e6..8c61b4f6 100644 --- a/hdata/test/hdata_to_dt.c +++ b/hdata/test/hdata_to_dt.c @@ -193,7 +193,7 @@ static u32 hash_prop(const struct dt_property *p) /* a stupid checksum */ for (i = 0; i < p->len; i++) - hash += ((p->prop[i] & ~0x10) + 1) * i; + hash += (((signed char)p->prop[i] & ~0x10) + 1) * i; return hash; } -- cgit v1.2.1