diff options
| author | Gavin Andresen <[email protected]> | 2010-12-08 20:06:44 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2010-12-08 20:06:44 -0500 |
| commit | d12e53ea090ba49a82ff4f79782af809d21cf280 (patch) | |
| tree | 8fb80d4335255d62eb65e9f7b2def7ca799b55c4 /util.cpp | |
| parent | Merge remote branch 'refs/remotes/svn/trunk' into svn (diff) | |
| parent | -- version 0.3.18 release (diff) | |
| download | discoin-d12e53ea090ba49a82ff4f79782af809d21cf280.tar.xz discoin-d12e53ea090ba49a82ff4f79782af809d21cf280.zip | |
Merge remote branch 'refs/remotes/svn/trunk' into svn
Diffstat (limited to 'util.cpp')
| -rw-r--r-- | util.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -175,7 +175,6 @@ inline int OutputDebugStringF(const char* pszFormat, ...) va_start(arg_ptr, pszFormat); ret = vfprintf(fileout, pszFormat, arg_ptr); va_end(arg_ptr); - fflush(fileout); } } @@ -406,11 +405,11 @@ vector<unsigned char> ParseHex(const char* psz) while (isspace(*psz)) psz++; char c = phexdigit[(unsigned char)*psz++]; - if (c == -1) + if (c == (char)-1) break; unsigned char n = (c << 4); c = phexdigit[(unsigned char)*psz++]; - if (c == -1) + if (c == (char)-1) break; n |= c; vch.push_back(n); |