Explorar o código

[display] avoid unnecessary string encoding

Jens Fischer %!s(int64=6) %!d(string=hai) anos
pai
achega
e3d7e7771a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/context/display/displayJson.ml

+ 1 - 1
src/context/display/displayJson.ml

@@ -161,7 +161,7 @@ let handler =
 				DisplayToplevel.read_class_paths hctx.com ["init"];
 				let files = CompilationServer.get_files hctx.display#get_cs in
 				hctx.send_result (jobject [
-					"files", jstring (string_of_int (Hashtbl.length files))
+					"files", jint (Hashtbl.length files)
 				]);
 			)
 		);