{{ message }}
Commit 7089bd9
doc: add missing float32/float64 FFI type names
`ToFFIType()` accepts `float32` and `float64` as aliases for `float`
and `double`, and both names already appear in the `ffi.types`
constants list further down the same page, but they were missing from
the list of supported type names.
Also split `char` onto its own line. Unlike `u8`, `uint8` and `bool`,
which always map to `ffi_type_uint8`, `char` maps to either
`ffi_type_sint8` or `ffi_type_uint8` depending on the platform C ABI,
as the paragraph below the list already explains.
Signed-off-by: Soul Lee <alus20x@gmail.com>
PR-URL: #64874
Refs: #62892
Refs: #64848
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>1 parent 5298db4 commit 7089bd9
1 file changed
Lines changed: 4 additions & 3 deletions

0 commit comments