aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2010-12-08 20:06:44 -0500
committerGavin Andresen <[email protected]>2010-12-08 20:06:44 -0500
commitd12e53ea090ba49a82ff4f79782af809d21cf280 (patch)
tree8fb80d4335255d62eb65e9f7b2def7ca799b55c4 /util.cpp
parentMerge remote branch 'refs/remotes/svn/trunk' into svn (diff)
parent-- version 0.3.18 release (diff)
downloaddiscoin-d12e53ea090ba49a82ff4f79782af809d21cf280.tar.xz
discoin-d12e53ea090ba49a82ff4f79782af809d21cf280.zip
Merge remote branch 'refs/remotes/svn/trunk' into svn
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/util.cpp b/util.cpp
index 607dc3f11..42256a9d0 100644
--- a/util.cpp
+++ b/util.cpp
@@ -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);