diff options
| author | Alan Westbrook <[email protected]> | 2014-01-27 01:11:38 -0800 |
|---|---|---|
| committer | Alan Westbrook <[email protected]> | 2014-01-27 01:11:38 -0800 |
| commit | 5a22b46b1f20f3c693513c6c2ab15c0eb27776b2 (patch) | |
| tree | 114d71a07dfa7aadcaee72d30283edbbb5c9d8a7 /src | |
| parent | Update README.md (diff) | |
| download | discoin-5a22b46b1f20f3c693513c6c2ab15c0eb27776b2.tar.xz discoin-5a22b46b1f20f3c693513c6c2ab15c0eb27776b2.zip | |
Fix warnings in Mac build1.5alpha2
Minor but annoying warnings from the mac build fixed.
* Incorrect duplication of header causing moc build rule duplication
in generated makefile
* you aren’t supposed to use char as an array type, probably because
it can be a signed type in some compilers. Negative array indexes are
problematic.
Diffstat (limited to 'src')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 7b41efd2a..717891a19 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1430,7 +1430,7 @@ long hex2long(const char* hexString) while (*hexString && ret >= 0) { - ret = (ret << 4) | hextable[*hexString++]; + ret = (ret << 4) | hextable[(uint8_t)*hexString++]; } return ret; |