diff options
| author | Michael Brown | 2005-04-23 16:34:00 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-23 16:34:00 +0200 |
| commit | e59607bcb185ba18bc242ba7f674842203b49dca (patch) | |
| tree | 9d0730e0c6252ac4aa4e5c504757c3cad01ccd32 | |
| parent | Coerced into compiling. (diff) | |
| download | ipxe-e59607bcb185ba18bc242ba7f674842203b49dca.tar.gz ipxe-e59607bcb185ba18bc242ba7f674842203b49dca.tar.xz ipxe-e59607bcb185ba18bc242ba7f674842203b49dca.zip | |
Should be an <= comparison, not a < comparison.
(Detected using "make symcheck" :)
| -rw-r--r-- | src/include/dev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/dev.h b/src/include/dev.h index 83b7f827f..b7c5ad1c8 100644 --- a/src/include/dev.h +++ b/src/include/dev.h @@ -105,10 +105,10 @@ struct bus_dev { } #define BUS_LOC_CHECK(datatype) \ - LINKER_ASSERT( ( sizeof (datatype) < sizeof (struct bus_loc) ), \ + LINKER_ASSERT( ( sizeof (datatype) <= sizeof (struct bus_loc) ), \ __BUS_LOC_SIZE_is_too_small__see_dev_h ) #define BUS_DEV_CHECK(datatype) \ - LINKER_ASSERT( ( sizeof (datatype) < sizeof (struct bus_dev) ), \ + LINKER_ASSERT( ( sizeof (datatype) <= sizeof (struct bus_dev) ), \ __BUS_DEV_SIZE_is_too_small__see_dev_h ) /* |
