Browse Source

Should be an <= comparison, not a < comparison.

(Detected using "make symcheck" :)
tags/v0.9.3
Michael Brown 20 years ago
parent
commit
e59607bcb1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/include/dev.h

+ 2
- 2
src/include/dev.h View File

@@ -105,10 +105,10 @@ struct bus_dev {
105 105
 	}
106 106
 
107 107
 #define BUS_LOC_CHECK(datatype)					      \
108
-	LINKER_ASSERT( ( sizeof (datatype) < sizeof (struct bus_loc) ),  \
108
+	LINKER_ASSERT( ( sizeof (datatype) <= sizeof (struct bus_loc) ),  \
109 109
 		       __BUS_LOC_SIZE_is_too_small__see_dev_h )
110 110
 #define BUS_DEV_CHECK(datatype)					      \
111
-	LINKER_ASSERT( ( sizeof (datatype) < sizeof (struct bus_dev) ),    \
111
+	LINKER_ASSERT( ( sizeof (datatype) <= sizeof (struct bus_dev) ),    \
112 112
 		       __BUS_DEV_SIZE_is_too_small__see_dev_h )
113 113
 
114 114
 /*

Loading…
Cancel
Save