From c04c2c62a0a7fc261d8f2084c5f77c1f0f24ccbe Mon Sep 17 00:00:00 2001 From: FelixBrendel Date: Sat, 2 Mar 2019 13:47:50 +0100 Subject: [PATCH] fixed setting user_type to nullptr when initting new lisp objects --- build.bat | 4 +++- src/memory.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.bat b/build.bat index 51e924a..73fe7ff 100644 --- a/build.bat +++ b/build.bat @@ -11,11 +11,13 @@ pushd build taskkill /F /IM %exeName% > NUL 2> NUL echo ---------- Compiling ---------- -call timecmd cl ../src/main.cpp /std:c++latest /Fe%exeName% /D_DEBUG /W3 /Zi /nologo /EHsc /link /NODEFAULTLIB:libucrt libucrtd.lib +call timecmd cl ../src/main.cpp /std:c++latest /Fe%exeName% /W3 /Zi /nologo /EHsc /link /NODEFAULTLIB:libucrt libucrtd.lib if %errorlevel% == 0 ( echo. echo Done + echo. + call timecmd slime.exe --run-tests ) else ( echo. echo Fuckin' ell diff --git a/src/memory.cpp b/src/memory.cpp index 91deb1c..1ee54d3 100644 --- a/src/memory.cpp +++ b/src/memory.cpp @@ -93,6 +93,7 @@ namespace Memory { } Lisp_Object* object = object_memory+index; object->sourceCodeLocation = nullptr; + object->userType = nullptr; return object; }