This repository was archived by the owner on May 22, 2023. It is now read-only.
File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 75
75
(True); -- TODO: Range check for Session_Id
76
76
77
77
function Identifier (S : Server_Session) return Session_Id is
78
- (Session_Id'Val (Standard.Interfaces.Unsigned_32'Pos (S.Tag) + Session_Id'Pos (Session_Id'Last )));
78
+ (Session_Id'Val (Standard.Interfaces.Unsigned_32'Pos (S.Tag) + Session_Id'Pos (Session_Id'First )));
79
79
80
80
end Componolit.Gneiss.Block ;
Original file line number Diff line number Diff line change 26
26
(Serv.Event'Address) with
27
27
SPARK_Mode => Off;
28
28
29
- function Session_Address (D : Dispatcher_Session) return System.Address is
30
- (D'Address) with
31
- SPARK_Mode => Off;
29
+ function Session_Address (D : Dispatcher_Session) return System.Address;
30
+
31
+ function Session_Address (D : Dispatcher_Session) return System.Address with
32
+ SPARK_Mode => Off
33
+ is
34
+ begin
35
+ return D'Address;
36
+ end Session_Address ;
32
37
33
38
procedure Initialize (D : in out Dispatcher_Session;
34
39
Cap : Componolit.Gneiss.Types.Capability;
44
49
Block_Dispatch_Event => System.Null_Address,
45
50
Tag => Standard.Interfaces.Unsigned_32'Val
46
51
(Session_Id'Pos (Tag)
47
- - Session_Id'Pos (Session_Id'Last )),
52
+ - Session_Id'Pos (Session_Id'First )),
48
53
Session => Session_Address (D));
49
54
exit ;
50
55
end if ;
You can’t perform that action at this time.
0 commit comments