Ancestors

Written by lawless polymorph on 2025-01-25 at 22:08

the code:

int32_t v93 = -2147483648;

the error message:

"unary minus operator applied to unsigned type, result still unsigned"

=> More informations about this toot | More toots from typeswitch@gamedev.lgbt

Written by lawless polymorph on 2025-01-25 at 22:13

what do I do? what is the blessed way of writing an integer literal with the value of INT32_MIN? (without creating a special case for INT32_MIN)

=> More informations about this toot | More toots from typeswitch@gamedev.lgbt

Written by gaytabase on 2025-01-25 at 22:14

@typeswitch suffix it?

=> More informations about this toot | More toots from dysfun@treehouse.systems

Written by lawless polymorph on 2025-01-25 at 22:15

@dysfun is there a macro for picking out the correct suffix for fixed-size integer types? 🤔

=> More informations about this toot | More toots from typeswitch@gamedev.lgbt

Toot

Written by gaytabase on 2025-01-25 at 22:16

@typeswitch shrug i doubt it. but you can use a long and let it truncate?

=> More informations about this toot | More toots from dysfun@treehouse.systems

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113891304759910114
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
312.773625 milliseconds
Gemini-to-HTML Time
0.869037 milliseconds

This content has been proxied by September (3851b).