From 04f4071411bc4eb9eefe65cc38ea630e757be014 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Fri, 23 Oct 2026 13:49:43 +0100 Subject: [PATCH] raz.md: ABS of an untyped constant beyond the I64s is an error, as section 2 has it --- diff --git a/doc/raz.md b/doc/raz.md index c5beab0..fa50251 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -868,8 +868,9 @@ smallest value of the type gives itself, as `-x` does; for an unsigned type it is `x`. For a real it clears the sign bit: `ABS(-0.0)` is 0.0, `ABS` of a NaN is a NaN, and of minus infinity is infinity. Of a -constant it is a constant; of an untyped one, the untyped absolute -value, `ABS(-5)` is 5, which doesn't wrap. +constant it is a constant; of an untyped one, an untyped one, +`ABS(-5)` is 5, and a result beyond the `I64`s, `ABS(MIN(I64))`, is an +error, as for any arithmetic on untyped constants (section 2). Relations compare as signed or unsigned according to the type.