diff options
Diffstat (limited to 'otherlibs/labltk/compiler/printer.ml')
-rw-r--r-- | otherlibs/labltk/compiler/printer.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/labltk/compiler/printer.ml b/otherlibs/labltk/compiler/printer.ml index d4bb5db72..5a74357c3 100644 --- a/otherlibs/labltk/compiler/printer.ml +++ b/otherlibs/labltk/compiler/printer.ml @@ -23,7 +23,7 @@ let escape_string s = | _ -> () done; if !more = 0 then s else - let res = String.create (String.length s + !more) in + let res = String.create len:(String.length s + !more) in let j = ref 0 in for i = 0 to String.length s - 1 do let c = s.[i] in @@ -33,7 +33,7 @@ let escape_string s = done; res;; -let escape_char c = if c = '\'' then "\\'" else String.make 1 c;; +let escape_char c = if c = '\'' then "\\'" else String.make len:1 c;; let print_quoted_string s = printf "\"%s\"" (escape_string s);; let print_quoted_char c = printf "'%s'" (escape_char c);; |