include: change RegionSize() to take a size_t
/usr/include/xorg/regionstr.h:130:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] return (sizeof(RegDataRec) + ((n) * sizeof(BoxRec))); ^ ~ Really only just pushes the problem to the caller, but maybe that motivates someone to fix it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3ccec1b5ba
commit
995ecfb51d
|
@ -125,7 +125,7 @@ RegionEnd(RegionPtr reg)
|
|||
}
|
||||
|
||||
static inline size_t
|
||||
RegionSizeof(int n)
|
||||
RegionSizeof(size_t n)
|
||||
{
|
||||
return (sizeof(RegDataRec) + ((n) * sizeof(BoxRec)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user