aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-04-19 15:46:49 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-04-30 16:11:07 +1000
commitc90fb6cd796e0ca8c2fcffef8d1f8a8e6245b8ae (patch)
tree33c86ca2a3e3276b9142b6e6541ea39fe1b9e2d3
parent23dc884f8a0f0b52d3e9312b64b9b02fcd8453a1 (diff)
downloadskiboot-c90fb6cd796e0ca8c2fcffef8d1f8a8e6245b8ae.zip
skiboot-c90fb6cd796e0ca8c2fcffef8d1f8a8e6245b8ae.tar.gz
skiboot-c90fb6cd796e0ca8c2fcffef8d1f8a8e6245b8ae.tar.bz2
hdat_to_dt: hash_prop the same on all platforms
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--hdata/test/hdata_to_dt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c
index f7ed65e..8c61b4f 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;
}