浏览代码

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

(Detected using "make symcheck" :)
tags/v0.9.3
Michael Brown 21 年前
父节点
当前提交
e59607bcb1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/include/dev.h

+ 2
- 2
src/include/dev.h 查看文件

105
 	}
105
 	}
106
 
106
 
107
 #define BUS_LOC_CHECK(datatype)					      \
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
 		       __BUS_LOC_SIZE_is_too_small__see_dev_h )
109
 		       __BUS_LOC_SIZE_is_too_small__see_dev_h )
110
 #define BUS_DEV_CHECK(datatype)					      \
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
 		       __BUS_DEV_SIZE_is_too_small__see_dev_h )
112
 		       __BUS_DEV_SIZE_is_too_small__see_dev_h )
113
 
113
 
114
 /*
114
 /*

正在加载...
取消
保存