Remove packed attribute from Rect
Fixes #3785 -- the issue where the Travis build failed because of gcc's -Werror=address-of-packed-member. Adds an equality function to avoid relying on memcmp().
This commit is contained in:
@ -53,6 +53,10 @@ Rect rect_sub(Rect a, Rect b) {
|
||||
a.height - b.height};
|
||||
}
|
||||
|
||||
bool rect_equals(Rect a, Rect b) {
|
||||
return a.x == b.x && a.y == b.y && a.width == b.width && a.height == b.height;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the name consists of only digits.
|
||||
*
|
||||
|
Reference in New Issue
Block a user