Comment

Comment by fleventynine

> If you call a method which returns an unsigned int, how do you safely pass it to a method which accepts a signed int?

The same way you pass a 64-bit integer to a function that expects a 32-bit integer: a conversion function that raises an error if it's out of range.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton