geo/osm2pgsql: backport upstream commit to fix build with fmt 8.1.1

from a29d1fa6b1
fixes build failure reported by naddy@
This commit is contained in:
landry 2022-06-08 17:18:43 +00:00
parent 99950b0f25
commit ea557228c3

View File

@ -0,0 +1,15 @@
fix build with fmt 8.1.1
from https://github.com/openstreetmap/osm2pgsql/commit/a29d1fa6b105bfe385280b39ac3143f020ff241d
Index: src/output-flex.cpp
--- src/output-flex.cpp.orig
+++ src/output-flex.cpp
@@ -636,7 +636,7 @@ void output_flex_t::write_column(
}
} else {
throw std::runtime_error{
- "Column type {} not implemented."_format(column.type())};
+ "Column type {} not implemented."_format(static_cast<uint8_t>(column.type()))};
}
lua_pop(lua_state(), 1);