From ad7fc5450ee2a119a41526ac280d6a824ff2481d Mon Sep 17 00:00:00 2001 From: mike dupont Date: Sun, 10 Dec 2023 17:04:51 -0500 Subject: [PATCH] remove bad cast --- Makefile | 4 ++-- plugin_ocaml.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f202614f2..058fb5836 100644 --- a/Makefile +++ b/Makefile @@ -116,8 +116,8 @@ endif # keep standard at C11 and C++11 MK_CPPFLAGS = -I. -Icommon -I/usr/local/lib/ocaml/ -MK_CFLAGS = -std=c11 -fPIC -MK_CXXFLAGS = -std=c++17 -fPIC -fpermissive +MK_CFLAGS = -std=c11 -fPIC -g +MK_CXXFLAGS = -std=c++17 -fPIC -fpermissive -g # -Ofast tends to produce faster code, but may not be available for some compilers. ifdef LLAMA_FAST diff --git a/plugin_ocaml.cpp b/plugin_ocaml.cpp index 2f528d21c..8ece24889 100644 --- a/plugin_ocaml.cpp +++ b/plugin_ocaml.cpp @@ -84,7 +84,8 @@ std::string process_output_plugin_ocaml(const std::string start, // value result= caml_callback( *step_fn, ocamlString ); - std::string resultString = String_val(result); + std::string resultString = "todo"; + //String_val(result); return resultString; }