Explorar el Código

Change default string representation

Ole Krüger hace 10 años
padre
commit
ee643daf93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/luwra/userdata.hpp

+ 1 - 1
lib/luwra/userdata.hpp

@@ -36,7 +36,7 @@ namespace internal {
 
 		return Value<std::string>::push(
 			state,
-			std::string(T::MetatableName) + ": " + std::to_string(instance)
+			std::string(T::MetatableName) + ": #" + std::to_string(uintmax_t(instance))
 		);
 	}
 }