diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index f242b91956..74e38246e6 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -369,11 +369,12 @@ int wxNotebook::HitTest(const wxPoint& pt, long * flags) const } } - if ( outPart >= 1 && outPart <= countPages ) + if ( outPart >= 1 && (size_t)outPart <= countPages ) { resultV = outPart ; } -#endif +#endif // TARGET_API_MAC_OSX + if (flags != NULL) { *flags = 0;