From a0d52f52d12cf9efcca18799d60c6534f60ed7d7 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 15 Nov 2022 19:09:01 +0800 Subject: [PATCH] Update obj.h --- src/obj.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/obj.h b/src/obj.h index 2ac313c5..43b2cc56 100644 --- a/src/obj.h +++ b/src/obj.h @@ -78,7 +78,7 @@ const int _SIZEOF_VALUE = sizeof(_Value); #ifdef POCKETPY_H #define UNREACHABLE() throw std::runtime_error( "L" + std::to_string(__LINE__) + ": UNREACHABLE()! This should be a bug, please report it"); #else -#define UNREACHABLE() throw std::runtime_error( __FILE__ + ":" + std::to_string(__LINE__) + " UNREACHABLE()!"); +#define UNREACHABLE() throw std::runtime_error( __FILE__ + std::string(":") + std::to_string(__LINE__) + " UNREACHABLE()!"); #endif struct PyObject {