Put_Image should start printing the tree from the Root instead
of the First_Child.
gcc/ada/ChangeLog:
* libgnat/a-cbmutr.adb (Put_Image): Fix the condition and starting point
for printing the tree.
* libgnat/a-cimutr.adb (Put_Image): Likewise.
* libgnat/a-comutr.adb (Put_Image): Likewise.
end Rec;
begin
- if First_Child (Root (V)) = No_Element then
+ if Is_Empty (V) then
Array_Before (S);
Array_After (S);
else
- Rec (First_Child (Root (V)));
+ Rec (Root (V));
end if;
end Put_Image;
end Rec;
begin
- if First_Child (Root (V)) = No_Element then
+ if Is_Empty (V) then
Array_Before (S);
Array_After (S);
else
- Rec (First_Child (Root (V)));
+ Rec (Root (V));
end if;
end Put_Image;
end Rec;
begin
- if First_Child (Root (V)) = No_Element then
+ if Is_Empty (V) then
Array_Before (S);
Array_After (S);
else
- Rec (First_Child (Root (V)));
+ Rec (Root (V));
end if;
end Put_Image;