Change long → int32_t for 68K struct

When building as 64 bit the ‘long’ type is 8 bytes which broke the “jump to selection” part of the ODBEditor protocol support (issue #499).
This commit is contained in:
Allan Odgaard
2012-12-16 21:21:08 +01:00
parent 4d8f0422ec
commit 92c77ece36

View File

@@ -22,12 +22,12 @@ bool DidHandleODBEditorEvent (AppleEvent const* event);
#pragma pack(2)
struct PBX_SelectionRange
{
short unused1; // 0 (not used)
short lineNum; // line to select (<0 to specify range)
long startRange; // start of selection range (if line < 0)
long endRange; // end of selection range (if line < 0)
long unused2; // 0 (not used)
long theDate; // modification date/time
int16_t unused1; // 0 (not used)
int16_t lineNum; // line to select (<0 to specify range)
int32_t startRange; // start of selection range (if line < 0)
int32_t endRange; // end of selection range (if line < 0)
int32_t unused2; // 0 (not used)
int32_t theDate; // modification date/time
};
#pragma options align=reset