diff --git a/src/mac/carbon/fontdlg.cpp b/src/mac/carbon/fontdlg.cpp index b268f07129..12c51ca23f 100644 --- a/src/mac/carbon/fontdlg.cpp +++ b/src/mac/carbon/fontdlg.cpp @@ -126,7 +126,7 @@ pascal OSStatus wxMacCarbonFontPanelHandler(EventHandlerCallRef nextHandler, Eve ByteCount *sizePtr = (ByteCount *)CFDataGetBytePtr(sizesData); UInt32 *bytePtr = (UInt32*)CFDataGetBytePtr(valuesData); ATSUAttributeValuePtr valuesPtr = bytePtr ; - for ( int i = 0 ; i < count ; ++i) + for ( ItemCount i = 0 ; i < count ; ++i) { if ( tagPtr[i] == kATSUColorTag && sizePtr[i] == sizeof(RGBColor)) {