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:
Don Ho 2022-11-01 12:52:06 +01:00
parent ae32f34fb3
commit 1d98d98300
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ typedef ptrdiff_t Sci_Position;
typedef size_t Sci_PositionU; typedef size_t Sci_PositionU;
// For Sci_CharacterRange which is defined as long to be compatible with Win32 CHARRANGE // 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 #ifdef _WIN32
#define SCI_METHOD __stdcall #define SCI_METHOD __stdcall

View File

@ -12,7 +12,7 @@
namespace Scintilla { namespace Scintilla {
using PositionCR = long; using PositionCR = intptr_t;
struct CharacterRange { struct CharacterRange {
PositionCR cpMin; PositionCR cpMin;