aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.h
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2018-04-22 08:29:01 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2018-04-22 08:29:01 +1000
commitdc7c28cfcf21c18f96a49f2cc0818d4f676bd301 (patch)
tree80b3dd322f359066f0b149a749ed8629a97e4184 /cocoa/ScintillaCocoa.h
parent23ef8619d029b9edbe0f19212a6b3954b9f79874 (diff)
downloadscintilla-mirror-dc7c28cfcf21c18f96a49f2cc0818d4f676bd301.tar.gz
Fix problems with 64-bit positions by using types that expand to 64-bits and
removing casts to int.
Diffstat (limited to 'cocoa/ScintillaCocoa.h')
-rw-r--r--cocoa/ScintillaCocoa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h
index e86c00724..a54e3cfbb 100644
--- a/cocoa/ScintillaCocoa.h
+++ b/cocoa/ScintillaCocoa.h
@@ -197,7 +197,7 @@ public:
void ObserverRemove();
void IdleWork() override;
void QueueIdleWork(WorkNeeded::workItems items, Sci::Position upTo) override;
- int InsertText(NSString *input);
+ ptrdiff_t InsertText(NSString *input);
NSRange PositionsFromCharacters(NSRange rangeCharacters) const;
NSRange CharactersFromPositions(NSRange rangePositions) const;
NSString *RangeTextAsString(NSRange rangePositions) const;