Переглянути джерело

update submodules

use exposed add_uchar instead of creating a new buffer for \u
Simon Krajewski 7 роки тому
батько
коміт
6cf3aded2e
2 змінених файлів з 2 додано та 4 видалено
  1. 1 1
      libs
  2. 1 3
      src/core/ast.ml

+ 1 - 1
libs

@@ -1 +1 @@
-Subproject commit e71efd46c68468b8225a44dae5a571e3d992670d
+Subproject commit 47b5801cbfca8d45de3b4790aa49576da1a1212d

+ 1 - 3
src/core/ast.ml

@@ -531,9 +531,7 @@ let unescape s =
 						with _ ->
 							fail()
 					in
-					let ub = UTF8.Buf.create 0 in
-					UTF8.Buf.add_char ub (UChar.uchar_of_int u);
-					Buffer.add_string b (UTF8.Buf.contents ub);
+					UTF8.add_uchar b (UChar.uchar_of_int u);
 					inext := !inext + a;
 				| _ ->
 					fail());