diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-01-20 22:24:39 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-01-20 22:24:39 +0000 |
commit | d22191faaa1982f92120c293792798a829424159 (patch) | |
tree | 23f73e34d6c63bd0641959519e3f9ff6650b5642 /sys/powerpc/ofw | |
parent | 39957b7340f1e5781191b7b97b4fb30eafd9b7f3 (diff) | |
download | FreeBSD-src-d22191faaa1982f92120c293792798a829424159.zip FreeBSD-src-d22191faaa1982f92120c293792798a829424159.tar.gz |
Prevent an error resulting from signed/unsigned comparison on systems
that do not comply with the OF spec.
Submitted by: Anders Gavare
MFC after: 1 week
Diffstat (limited to 'sys/powerpc/ofw')
-rw-r--r-- | sys/powerpc/ofw/ofw_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/ofw/ofw_machdep.c b/sys/powerpc/ofw/ofw_machdep.c index fcdc953..448393d 100644 --- a/sys/powerpc/ofw/ofw_machdep.c +++ b/sys/powerpc/ofw/ofw_machdep.c @@ -171,10 +171,10 @@ parse_ofw_memory(phandle_t node, const char *prop, struct mem_region *output) */ phandle = OF_finddevice("/"); if (OF_getprop(phandle, "#address-cells", &address_cells, - sizeof(address_cells)) < sizeof(address_cells)) + sizeof(address_cells)) < (ssize_t)sizeof(address_cells)) address_cells = 1; if (OF_getprop(phandle, "#size-cells", &size_cells, - sizeof(size_cells)) < sizeof(size_cells)) + sizeof(size_cells)) < (ssize_t)sizeof(size_cells)) size_cells = 1; /* |