Consider nil as null?
This commit is contained in:
parent
8100295567
commit
7d621f82db
2 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This change
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- `nil` was not considered a null pointer
|
||||||
- Primitive-serializing types fail to compile as arguments to downcall handles
|
- Primitive-serializing types fail to compile as arguments to downcall handles
|
||||||
- Primitive-serializing types fail to load as arguments to upcall functions
|
- Primitive-serializing types fail to load as arguments to upcall functions
|
||||||
- Void return types on upcalls crash the JVM
|
- Void return types on upcalls crash the JVM
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
(defn null?
|
(defn null?
|
||||||
"Checks if a memory address is null."
|
"Checks if a memory address is null."
|
||||||
[addr]
|
[addr]
|
||||||
(.equals (MemoryAddress/NULL) addr))
|
(or (.equals (MemoryAddress/NULL) addr) (not addr)))
|
||||||
|
|
||||||
(defn slice-global
|
(defn slice-global
|
||||||
"Gets a slice of the global address space.
|
"Gets a slice of the global address space.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue