* fixes #12589; add testcase * fixes i386 * i386
This commit is contained in:
parent
3c2c728eb6
commit
93b085a57a
1 changed files with 14 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ block nonzero: # bug #6959
|
||||||
C
|
C
|
||||||
let slice = SomeEnum.low..SomeEnum.high
|
let slice = SomeEnum.low..SomeEnum.high
|
||||||
|
|
||||||
block size_one_byte: #issue 15752
|
block size_one_byte: # bug #15752
|
||||||
type
|
type
|
||||||
Flag = enum
|
Flag = enum
|
||||||
Disabled = 0x00
|
Disabled = 0x00
|
||||||
|
|
@ -163,3 +163,15 @@ block size_one_byte: #issue 15752
|
||||||
|
|
||||||
static:
|
static:
|
||||||
assert 1 == sizeof(Flag)
|
assert 1 == sizeof(Flag)
|
||||||
|
|
||||||
|
block: # bug #12589
|
||||||
|
when not defined(i386):
|
||||||
|
type
|
||||||
|
OGRwkbGeometryType {.size: sizeof(cuint).} = enum
|
||||||
|
wkbPoint25D = 0x80000001.cuint, wkbLineString25D = 0x80000002,
|
||||||
|
wkbPolygon25D = 0x80000003
|
||||||
|
|
||||||
|
proc typ(): OGRwkbGeometryType =
|
||||||
|
return wkbPoint25D
|
||||||
|
|
||||||
|
doAssert $typ() == "wkbPoint25D"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue