tweak address-of types

This commit is contained in:
Irmen de Jong
2025-05-16 16:49:23 +02:00
parent 4f0839f27e
commit 0e64a22910
4 changed files with 24 additions and 12 deletions

View File

@@ -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
}