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

Andreas Heinig andreas.heinig at cs.tu-dortmund.de
Thu May 2 11:00:40 UTC 2013


Hello,

please delete this patch. It doesn't make sense to cast vector to 
rtems_vector_number, because it is already of the rtems_vector_number type.

Sorry,
Andreas

On Thursday 02 May 2013 12:54:02 you wrote:
> ---
>  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



More information about the devel mailing list