From aebfcf7705d5b6adc30cbc440b0f3d235e9a6b50 Mon Sep 17 00:00:00 2001 From: Ralf Hubert Date: Wed, 2 Oct 2024 13:17:26 +0200 Subject: [PATCH] Fix staticmemory variant build Use Ada.Unchecked_Conversion to avoid: aunit-memory.adb:35:06: error: "UNCHECKED_CONVERSION" is not a predefined library unit --- include/aunit/framework/staticmemory/aunit-memory.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/aunit/framework/staticmemory/aunit-memory.adb b/include/aunit/framework/staticmemory/aunit-memory.adb index 8068303..892c643 100644 --- a/include/aunit/framework/staticmemory/aunit-memory.adb +++ b/include/aunit/framework/staticmemory/aunit-memory.adb @@ -32,7 +32,7 @@ -- Dummy implementation. with System.Storage_Elements; -with Unchecked_Conversion; +with Ada.Unchecked_Conversion; package body AUnit.Memory is @@ -49,7 +49,7 @@ package body AUnit.Memory is Top : Mark_Id := Mem'First; - function To_Mark_Id is new Unchecked_Conversion + function To_Mark_Id is new Ada.Unchecked_Conversion (size_t, Mark_Id); -----------