Skip to content

Commit

Permalink
Fixing some errors reported by the CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mbodin committed Nov 30, 2023
1 parent 1efb435 commit 74d4b52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/svg_sigs.mli
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,8 @@ module type Wrapped_functions = sig
val string_of_orient : (Svg_types.Unit.angle option, string) Xml.W.ft

val string_of_paint : ([< Svg_types.paint], string) Xml.W.ft

val string_of_opacity : (float, string) Xml.W.ft

val string_of_fill_rule : ([< Svg_types.fill_rule], string) Xml.W.ft

Expand Down
8 changes: 4 additions & 4 deletions syntax/attribute_value.ml
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,12 @@ let fill_opacity =
in

let v =
if group_matched 2 s then [%expr [%e n] /. 100.]
else [%expr [%e n]] in
if group_matched 2 s then (n /. 100.)
else n in

if v >= 0. && v <= 1. then Some v
if v >= 0. && v <= 1. then Some [%expr [%e v]]
else
Common.error loc "Value of %s must be between 0 and 1." name in
Common.error loc "Value of %s must be between 0 and 1." name
end [@metaloc loc]

let fill_rule ?separated_by:_ ?default:_ loc _name s =
Expand Down

0 comments on commit 74d4b52

Please sign in to comment.