Skip to content

Commit 09c2dcd

Browse files
authored
Merge pull request #1828 from joto/fix-signed-unsigned-conversion
Fix signed to unsigned conversion
2 parents 5c6d7df + 7c01de8 commit 09c2dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db-copy-mgr.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class db_copy_mgr_t
258258
char const *const lookup_hex = "0123456789ABCDEF";
259259

260260
for (auto c : wkb) {
261-
auto const num = static_cast<unsigned int>(c);
261+
unsigned int const num = static_cast<unsigned char>(c);
262262
m_current->buffer += lookup_hex[(num >> 4U) & 0xfU];
263263
m_current->buffer += lookup_hex[num & 0xfU];
264264
}

0 commit comments

Comments
 (0)