mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-07 19:10:25 +00:00
Minor change to mem structure
Change to mem.TYPE from LONG variable type to OFFSET. This prevents 4-bytes padding from throwing off values for mem.ELEMENTSIZE and mem.IMAGE on 64-bit systems. Patch should work on Mac, Linux, and Windows; both 32-bit and 64-bit versions, giving the correct results for mem.ELEMENTSIZE and mem.IMAGE from now on.
This commit is contained in:
parent
f289da3a5a
commit
78d4b607bd
|
@ -453,7 +453,7 @@ struct mem_block{
|
||||||
ptrszint size;
|
ptrszint size;
|
||||||
int64 lock_id;//64-bit key, must be present at lock's offset or memory region is invalid
|
int64 lock_id;//64-bit key, must be present at lock's offset or memory region is invalid
|
||||||
ptrszint lock_offset;//pointer to lock
|
ptrszint lock_offset;//pointer to lock
|
||||||
int32 type;
|
ptrszint type;
|
||||||
/*
|
/*
|
||||||
memorytype (4 bytes, but only the first used, for flags):
|
memorytype (4 bytes, but only the first used, for flags):
|
||||||
1 integer values
|
1 integer values
|
||||||
|
|
|
@ -4,4 +4,4 @@ DIM SHARED AutoBuildMsg AS STRING
|
||||||
Version$ = "1.1"
|
Version$ = "1.1"
|
||||||
'BuildNum format is YYYYMMDD/id, where id is a ever-increasing
|
'BuildNum format is YYYYMMDD/id, where id is a ever-increasing
|
||||||
'integer. If you make a change, update the date and increase the id!
|
'integer. If you make a change, update the date and increase the id!
|
||||||
BuildNum$ = "20170721/56"
|
BuildNum$ = "20170802/57"
|
||||||
|
|
23890
source/qb64.bas
23890
source/qb64.bas
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue