aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-05-21 11:52:08 +1000
committernyamatongwe <unknown>2011-05-21 11:52:08 +1000
commitbd90861c34cf8b8001a8c38304b0ee37de252328 (patch)
treedda7e85f3b5eeb4841f79f25b6df967d5280ed6a
parentb131b0923b67162ff1be29da0ebba7289b5a1c3f (diff)
downloadscintilla-mirror-bd90861c34cf8b8001a8c38304b0ee37de252328.tar.gz
64-bit fixes.
-rw-r--r--cocoa/InfoBar.mm2
-rw-r--r--cocoa/PlatCocoa.mm6
-rw-r--r--cocoa/ScintillaCocoa.mm2
3 files changed, 5 insertions, 5 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm
index 63d68c4a1..0d4a7a750 100644
--- a/cocoa/InfoBar.mm
+++ b/cocoa/InfoBar.mm
@@ -46,7 +46,7 @@
//--------------------------------------------------------------------------------------------------
- (void) selectWithFrame: (NSRect) aRect inView: (NSView*) controlView editor: (NSText*) textObj
- delegate:(id) anObject start: (int) selStart length: (int) selLength
+ delegate:(id) anObject start: (NSInteger) selStart length: (NSInteger) selLength
{
aRect = [self drawingRectForBounds: aRect];
mIsEditingOrSelecting = YES;
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 7dfb60169..6e8620b0b 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -542,7 +542,7 @@ void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern)
// Unlike the documentation, you MUST pass in a "components" parameter:
// For coloured patterns it is the alpha value.
- const float alpha = 1.0;
+ const CGFloat alpha = 1.0;
CGContextSetFillPattern( gc, pattern, &alpha );
CGContextFillRect( gc, PRectangleToCGRect( rc ) );
CGContextRestoreGState( gc );
@@ -1475,7 +1475,7 @@ void ListBoxImpl::DrawRow(DataBrowserItemID item,
ColourPair fore;
if (itemState == kDataBrowserItemIsSelected) {
- long systemVersion;
+ SInt32 systemVersion;
Gestalt( gestaltSystemVersion, &systemVersion );
// Panther DB starts using kThemeBrushSecondaryHighlightColor for inactive browser hilighting
if ( (systemVersion >= 0x00001030) )//&& (IsControlActive( lb ) == false) )
@@ -1621,7 +1621,7 @@ void ListBoxImpl::SetFont(Font &font_) {
ts->getAttribute( kATSUFontTag, sizeof(fontID), &fontID, NULL );
ATSUFontIDtoFOND(fontID, &style.font, NULL);
ts->getAttribute( kATSUSizeTag, sizeof(Fixed), &value, NULL );
- style.size = ((SInt16)FixRound((SInt32)value));
+ style.size = ((SInt16)FixRound((uintptr_t)value));
//SetControlFontStyle(lb, &style);
#ifdef DB_TABLE_ROW_HEIGHT
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 08c827b38..434ab942d 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -1178,7 +1178,7 @@ void ScintillaCocoa::NotifyParent(SCNotification scn)
if (notifyProc != NULL)
{
scn.nmhdr.hwndFrom = (void*) this;
- scn.nmhdr.idFrom = (unsigned int) wMain.GetID();
+ scn.nmhdr.idFrom = (uintptr_t) wMain.GetID();
notifyProc(notifyObj, WM_NOTIFY, (uintptr_t) 0, (uintptr_t) &scn);
}
}