org.sonar.l10n.delphi.rules.community-delphi.PlatformDependentCast.html Maven / Gradle / Ivy
The newest version!
Why is this an issue?
Platform-dependent types have different sizes on different target platforms, while
platform-independent types have the same size on all target platforms. Casts between
platform-dependent and platform-independent types will have different behaviours on different
target platforms, and should be removed.
Platform-dependent types include:
- All pointer-based types, including strings, arrays, classes, and interfaces
NativeInt
and NativeUint
How to fix it
Refactor the code so that platform-dependent and platform-independent types are not cast
to each other.
Resources
© 2015 - 2024 Weber Informatics LLC | Privacy Policy