FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix off-by-one error in number formatting. Resolves #45 · 1biot/esp32_https_server@90c8177 · GitHub

Repository navigation

Commit 90c8177

Browse files
committed
Fix off-by-one error in number formatting. Resolves fhessel#45
1 parent 1ca85e9 commit 90c8177

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/util.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ std::string intToString(int i) {
4444
return "0";
4545
}
4646
// We need this much digits
47-
int digits = ceil(log10(i));
47+
int digits = ceil(log10(i+1));
4848
char c[digits+1];
4949
c[digits] = '\0';
5050

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL