From 7a53ae47eeec477f94cf2f5692fb03fa5aa51c44 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 1 Feb 2024 15:06:26 +0800 Subject: [PATCH] revert changes --- include/pocketpy/vector.h | 2 +- src/error.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/pocketpy/vector.h b/include/pocketpy/vector.h index 5d7fe445..f7b99539 100644 --- a/include/pocketpy/vector.h +++ b/include/pocketpy/vector.h @@ -128,7 +128,7 @@ struct pod_vector{ } ~pod_vector() { - if(_data!=nullptr) pool64_dealloc(_data); + if(_data != nullptr) pool64_dealloc(_data); } }; diff --git a/src/error.cpp b/src/error.cpp index f57aa27e..d2e30cc4 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -7,7 +7,8 @@ namespace pkpy{ // Skip utf8 BOM if there is any. if (strncmp(source.data(), "\xEF\xBB\xBF", 3) == 0) index += 3; // Drop all '\r' - SStream ss(source.size()); + // SStream ss(source.size()); + SStream ss; while(index < source.size()){ if(source[index] != '\r') ss << source[index]; index++;