diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-10 18:14:30 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-10 18:14:30 +0100 |
commit | ee2e68f44f7b9ee099f98b668257b5d57a86a695 (patch) | |
tree | d7593729cdb2dcad097c7a801f0c39c8d59381c0 /lib/dbStmt.h | |
parent | Tests, fixes, improvements to WritePqCopyStream (diff) | |
download | mygrate-ee2e68f44f7b9ee099f98b668257b5d57a86a695.tar.bz2 mygrate-ee2e68f44f7b9ee099f98b668257b5d57a86a695.tar.xz mygrate-ee2e68f44f7b9ee099f98b668257b5d57a86a695.zip |
Enable numeric conversion warning and fix the fallout
Diffstat (limited to 'lib/dbStmt.h')
-rw-r--r-- | lib/dbStmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dbStmt.h b/lib/dbStmt.h index 44ab62c..a6d4a65 100644 --- a/lib/dbStmt.h +++ b/lib/dbStmt.h @@ -26,7 +26,7 @@ namespace MyGrate { const auto pn = [](const char * c, const char * const e) { std::size_t n {0}; while (++c != e && *c >= '0' && *c <= '9') { - n = (n * 10) + (*c - '0'); + n = (n * 10) + unsigned(*c - '0'); } return n; }; |