mirror of
https://github.com/irmen/prog8.git
synced 2025-10-31 15:16:13 +00:00
tweak address-of types
This commit is contained in:
@@ -99,6 +99,10 @@ internal class VerifyFunctionArgTypes(val program: Program, val options: Compila
|
||||
TODO("array vs element pointer check")
|
||||
}
|
||||
|
||||
// if expected is UWORD and actual is any pointer, we allow it (uword is untyped pointer, for backwards compatibility)
|
||||
if(paramDt.isUnsignedWord && argDt.isPointer)
|
||||
return true
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user