|
@@ -1386,7 +1386,6 @@ class hxb_reader
|
|
| CfrConstructor ->
|
|
| CfrConstructor ->
|
|
Option.get c.cl_constructor
|
|
Option.get c.cl_constructor
|
|
in
|
|
in
|
|
- let depth = self#read_uleb128 in
|
|
|
|
let pick_overload cf depth =
|
|
let pick_overload cf depth =
|
|
let rec loop depth cfl = match cfl with
|
|
let rec loop depth cfl = match cfl with
|
|
| cf :: cfl ->
|
|
| cf :: cfl ->
|
|
@@ -1411,7 +1410,11 @@ class hxb_reader
|
|
in
|
|
in
|
|
loop depth cfl
|
|
loop depth cfl
|
|
in
|
|
in
|
|
- pick_overload cf depth;
|
|
|
|
|
|
+ let depth = self#read_uleb128 in
|
|
|
|
+ if depth = 0 then
|
|
|
|
+ cf
|
|
|
|
+ else
|
|
|
|
+ pick_overload cf depth;
|
|
) in
|
|
) in
|
|
class_fields <- a
|
|
class_fields <- a
|
|
|
|
|