diff --git a/_internal/Source/JSONMemory.cpp b/_internal/Source/JSONMemory.cpp index 541234f..b61ac8b 100644 --- a/_internal/Source/JSONMemory.cpp +++ b/_internal/Source/JSONMemory.cpp @@ -40,7 +40,7 @@ public: LIBJSON_OBJECT(mempool_callback_setter) inline mempool_callback_setter(void) json_nothrow { - ` LIBJSON_CTOR; + LIBJSON_CTOR; mempool_callbacks::set(std::malloc, std::realloc, std::free); } private: @@ -111,7 +111,7 @@ void * JSONMemory::json_realloc(void * ptr, size_t siz) json_nothrow { } #ifdef JSON_MEMORY_POOL - //it is okay to pass null to these callbacks, no make sure they function exists + //it is okay to pass null to these callbacks, so make sure the function exists static void * malloc_proxy(size_t siz) json_nothrow { if (json_malloc_t callback = JSONSingleton::get()){ return callback(siz); diff --git a/_internal/Source/JSONNode_Mutex.cpp b/_internal/Source/JSONNode_Mutex.cpp index 5b36137..8b62092 100644 --- a/_internal/Source/JSONNode_Mutex.cpp +++ b/_internal/Source/JSONNode_Mutex.cpp @@ -65,7 +65,7 @@ void * JSONNode::getThisLock(JSONNode * pthis) json_nothrow { if (pthis -> internal -> mylock != 0){ return pthis -> internal -> mylock; } - JSON_ASSERT(global_mutex != 0, JSON_TEXT("No global_mutex")); //this is safe, because it's just goingi to return 0 anyway + JSON_ASSERT(global_mutex != 0, JSON_TEXT("No global_mutex")); //this is safe, because it's just going to return 0 anyway return global_mutex; }