From 095193a9905caff27509a299d895d399d42c06aa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 21 Dec 2025 14:08:57 +0100 Subject: Fix truncation issue in libcmap_sprintf_range, and add LIBCMAP_ULTIMATE_CODEPOINT and LIBCMAP_UNIVERSE_RANGE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcmap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcmap.h') diff --git a/libcmap.h b/libcmap.h index e849ffb..78c0a53 100644 --- a/libcmap.h +++ b/libcmap.h @@ -14,6 +14,10 @@ #endif +#define LIBCMAP_ULTIMATE_CODEPOINT UINT32_C(0x10FFFF) +#define LIBCMAP_UNIVERSE_RANGE {0, LIBCMAP_ULTIMATE_CODEPOINT} + + struct libcmap_range { uint32_t first; uint32_t last; -- cgit v1.3.1