Suppress gcc warnings about double to int conversion.
This change might actually make the code more correct as well although in practice it probably doesn't change anything. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,8 +46,8 @@ static int ResolutionSorter(const void *e1, const void *e2)
|
||||
{
|
||||
const PMResolution *res1 = (const PMResolution *)e1;
|
||||
const PMResolution *res2 = (const PMResolution *)e2;
|
||||
int area1 = res1->hRes * res1->vRes;
|
||||
int area2 = res2->hRes * res2->vRes;
|
||||
const double area1 = res1->hRes * res1->vRes;
|
||||
const double area2 = res2->hRes * res2->vRes;
|
||||
|
||||
if (area1 < area2)
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user