mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 08:14:18 +02:00
Fix crash regression due to ABI incompatibility
Fix the regression due to the following commit:
3e9413d615
Modify type of "PositionCR" to "int64_t" from "long" again, to keep ABI compatible to plugins.
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12327#issuecomment-1297906305
This commit is contained in:
parent
ae32f34fb3
commit
1d98d98300
@ -18,7 +18,7 @@ typedef ptrdiff_t Sci_Position;
|
||||
typedef size_t Sci_PositionU;
|
||||
|
||||
// For Sci_CharacterRange which is defined as long to be compatible with Win32 CHARRANGE
|
||||
typedef long Sci_PositionCR;
|
||||
typedef intptr_t Sci_PositionCR;
|
||||
|
||||
#ifdef _WIN32
|
||||
#define SCI_METHOD __stdcall
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
namespace Scintilla {
|
||||
|
||||
using PositionCR = long;
|
||||
using PositionCR = intptr_t;
|
||||
|
||||
struct CharacterRange {
|
||||
PositionCR cpMin;
|
||||
|
Loading…
x
Reference in New Issue
Block a user