Ver código fonte

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

(Detected using "make symcheck" :)
tags/v0.9.3
Michael Brown 19 anos atrás
pai
commit
e59607bcb1
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/include/dev.h

+ 2
- 2
src/include/dev.h Ver arquivo

@@ -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
 /*

Carregando…
Cancelar
Salvar