Skip to content

Commit

Permalink
dev-ml/tyxml: fix uutf patch
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.2
  • Loading branch information
aballier committed Dec 1, 2016
1 parent 02edd94 commit 33e0056
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions dev-ml/tyxml/files/uutf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,3 @@ Index: tyxml-4.0.0/lib/xml_print.ml
| `Malformed _ ->
Uutf.Buffer.add_utf_8 buffer Uutf.u_rep;
warn:=true)
Index: tyxml-4.0.0/ppx/ppx_attribute_value.ml
===================================================================
--- tyxml-4.0.0.orig/ppx/ppx_attribute_value.ml
+++ tyxml-4.0.0/ppx/ppx_attribute_value.ml
@@ -160,7 +160,7 @@ let char ?separated_by:_ ?default:_ loc
let c =
match next decoded with
| None -> Ppx_common.error loc "No character in attribute %s" name
- | Some i when i <= 255 -> Char.chr i
+ | Some i when Uchar.to_int i <= 255 -> Char.chr (Uchar.to_int i)
| Some _ ->
Ppx_common.error loc "Character out of range in attribute %s" name
in

0 comments on commit 33e0056

Please sign in to comment.