We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb3e8ef commit e43abf4Copy full SHA for e43abf4
pretyping/reductionops.ml
@@ -64,7 +64,10 @@ module ReductionBehaviour = struct
64
if Lib.is_in_section (ConstRef c) then
65
let vars, _, _ = Lib.section_segment_of_constant c in
66
let extra = List.length vars in
67
- let nargs' = if b.b_nargs < 0 then b.b_nargs else b.b_nargs + extra in
+ let nargs' =
68
+ if b.b_nargs = max_int then max_int
69
+ else if b.b_nargs < 0 then b.b_nargs
70
+ else b.b_nargs + extra in
71
let recargs' = List.map ((+) extra) b.b_recargs in
72
{ b with b_nargs = nargs'; b_recargs = recargs' }
73
else b
0 commit comments