From 59a2fd979cfb79e9f6cd0699b0ad05814279e2a7 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 20 Jul 2023 23:11:17 +1200 Subject: Changed array datatypes for better interop --- example/virtual_io_example.adb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'example') diff --git a/example/virtual_io_example.adb b/example/virtual_io_example.adb index 8953c07..add9b56 100644 --- a/example/virtual_io_example.adb +++ b/example/virtual_io_example.adb @@ -15,6 +15,7 @@ with Ada.Directories, Ada.Direct_IO, Ada.Text_IO, + Interfaces, Libsndfile.Virtual; use type @@ -27,7 +28,7 @@ procedure Virtual_IO_Example is package ACom renames Ada.Command_Line; package ADir renames Ada.Directories; - package DIO is new Ada.Direct_IO (Element_Type => Character); + package DIO is new Ada.Direct_IO (Element_Type => Interfaces.Unsigned_8); package TIO renames Ada.Text_IO; @@ -69,7 +70,7 @@ procedure Virtual_IO_Example is Bytes : in Libsndfile.Count_Type) return Libsndfile.Count_Type is - Item : Character; + Item : Interfaces.Unsigned_8; Data_Position : Integer := 1; begin while Current_Offset <= Libsndfile.Count_Type (DIO.Size (Virtual_File)) and @@ -88,7 +89,7 @@ procedure Virtual_IO_Example is Bytes : in Libsndfile.Count_Type) return Libsndfile.Count_Type is - Item : Character; + Item : Interfaces.Unsigned_8; Data_Position : Integer := 1; begin while Current_Offset <= Libsndfile.Count_Type (DIO.Size (Virtual_File)) and -- cgit