Files
Ayke van Laethem 3ecefd6a0a cgo: refactor Go types a little bit
Code like this is not allowed by the upstream Go CGo implementation, but
was allowed by TinyGo:

    var _ int8 = C.int8_t(5)

The reason it shouldn't be allowed is a little bit complicated. While
it is true that C.int8_t is always the same underlying data type as Go
int8 (signed 8-bit integer), the C type is actually a typedef of one of
the base C types (usually unsigned char or signed char) which in turn do
_not_ map cleanly to Go types: the 'char' type is ambiguous (it may be
either signed or unsigned depending on the ABI) and types like 'int'
vary in size by ABI as well.

To make code more portable, I think it's better to match the upstream
implementation.
2023-09-22 17:51:15 +02:00
..
2023-09-22 17:51:15 +02:00
2019-09-20 10:35:49 +02:00
2019-09-20 10:35:49 +02:00
2023-04-11 18:54:05 -07:00
2023-03-24 09:22:38 -07:00
2023-03-24 09:22:38 -07:00
2021-04-09 18:33:48 +02:00
2022-01-19 14:42:02 -05:00
2021-04-09 18:33:48 +02:00
2021-04-09 18:33:48 +02:00
2019-02-05 19:37:21 +01:00
2019-02-05 19:37:21 +01:00
2020-10-23 21:37:35 +02:00
2020-10-23 21:37:35 +02:00
2023-01-17 08:38:54 +01:00
2019-10-13 23:07:47 +02:00
2019-10-13 23:07:47 +02:00
2023-08-04 11:59:11 +02:00
2020-05-12 01:17:27 +02:00