This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
objwarning.c:26: warning: conversion to 'uint32_t' from 'int' may change the sign of the result
typedef uint32_t Objects_Id; typedef uint16_t Objects_Maximum;
RTEMS_INLINE_ROUTINE uint16_t _Objects_Get_index( Objects_Id id)
uint32_t foo(Objects_Id id, Objects_Id minimum_id, uint16_t v)
{
uint32_t block;
uint32_t block_2;
block = _Objects_Get_index( id ) - _Objects_Get_index( minimum_id );
block_2 = _Objects_Get_index_2( id ) - _Objects_Get_index_2( minimum_id );
return block + block_2;
}
Cheers, Nicholas Sherlock
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |