Skip to content

Commit d307135

Browse files
committed
Fixing some errors reported by the CI.
1 parent 1efb435 commit d307135

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/svg_sigs.mli

+2
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,8 @@ module type Wrapped_functions = sig
11161116
val string_of_orient : (Svg_types.Unit.angle option, string) Xml.W.ft
11171117

11181118
val string_of_paint : ([< Svg_types.paint], string) Xml.W.ft
1119+
1120+
val string_of_opacity : (float, string) Xml.W.ft
11191121

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

syntax/attribute_value.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -501,12 +501,12 @@ let fill_opacity =
501501
in
502502

503503
let v =
504-
if group_matched 2 s then [%expr [%e n] /. 100.]
505-
else [%expr [%e n]] in
504+
if group_matched 2 s then ([%e n] /. 100.)
505+
else [%e n] in
506506

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

512512
let fill_rule ?separated_by:_ ?default:_ loc _name s =

0 commit comments

Comments
 (0)