summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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;
}
OpenPOWER on IntegriCloud