blueloveTH 3 lat temu
rodzic
commit
a0d52f52d1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/obj.h

+ 1 - 1
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 {