[PATCH 1/2] Fixed compiler warning regarding comparison with different sings

Andreas Heinig andreas.heinig at cs.tu-dortmund.de
Thu May 2 10:54:02 UTC 2013


---
 c/src/lib/libbsp/shared/include/irq-generic.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/shared/include/irq-generic.h b/c/src/lib/libbsp/shared/include/irq-generic.h
index d365c0c..47fc3e2 100644
--- a/c/src/lib/libbsp/shared/include/irq-generic.h
+++ b/c/src/lib/libbsp/shared/include/irq-generic.h
@@ -144,7 +144,7 @@ static inline rtems_vector_number bsp_interrupt_handler_index(
    */
   static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
   {
-    return (rtems_vector_number) BSP_INTERRUPT_VECTOR_MIN <= vector
+    return BSP_INTERRUPT_VECTOR_MIN <= (rtems_vector_number) vector
       && vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX;
   }
 #endif
-- 
1.7.10.4




More information about the devel mailing list