Tuple update (#2235)

* 'next_float' macro patch

More optimized implementation.

* tuple-type update

* U suffix in 'next_float'

* Do not add triplet, quadruplet, keep Tuple but deprecate. Add unpack

---------

Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
Ero Mrinin
2025-07-06 04:08:59 +04:00
committed by GitHub
parent 802fbfcf1e
commit d5559ecafd
2 changed files with 25 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ macro bool next_bool(random)
*>
macro float next_float(random)
{
uint val = random.next_int() & (1 << 24 - 1);
uint val = random.next_int() & (1U << 24 - 1);
return val * 0x1.0p-24f;
}