mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-04 17:31:49 +00:00
Allow casts between long long and pointer types.
This applies to casts in executable code. Some casts in initializers still don't work.
This commit is contained in:
parent
5e20e02d06
commit
15dc3a46c4
@ -2543,7 +2543,7 @@ else if tp^.kind = pointerType then begin
|
|||||||
|
|
||||||
scalarType:
|
scalarType:
|
||||||
if expressionType^.baseType in
|
if expressionType^.baseType in
|
||||||
[cgByte,cgUByte,cgWord,cgUWord,cgLong,cgULong] then
|
[cgByte,cgUByte,cgWord,cgUWord,cgLong,cgULong,cgQuad,cgUQuad] then
|
||||||
Gen2(pc_cnv, ord(Unary(expressionType^.baseType)),
|
Gen2(pc_cnv, ord(Unary(expressionType^.baseType)),
|
||||||
ord(cgULong))
|
ord(cgULong))
|
||||||
else if doDispose then
|
else if doDispose then
|
||||||
@ -2564,7 +2564,7 @@ else if expressionType^.kind in [pointerType,arrayType] then begin
|
|||||||
|
|
||||||
scalarType:
|
scalarType:
|
||||||
if tp^.baseType in
|
if tp^.baseType in
|
||||||
[cgByte,cgUByte,cgWord,cgUWord,cgLong,cgULong] then
|
[cgByte,cgUByte,cgWord,cgUWord,cgLong,cgULong,cgQuad,cgUQuad] then
|
||||||
Gen2(pc_cnv, ord(cgULong),
|
Gen2(pc_cnv, ord(cgULong),
|
||||||
ord(Unary(tp^.baseType)))
|
ord(Unary(tp^.baseType)))
|
||||||
else if tp^.baseType = cgVoid then
|
else if tp^.baseType = cgVoid then
|
||||||
|
Loading…
Reference in New Issue
Block a user