aboutsummaryrefslogtreecommitdiff
path: root/src/qt/optionsmodel.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2011-12-20 08:52:22 -0800
committerGavin Andresen <[email protected]>2011-12-20 08:52:22 -0800
commit74f5435e104be76cd342a9a196ed4a10b8a7e248 (patch)
tree254f76dfa15c36a359e661caa1b4cfd158e204f4 /src/qt/optionsmodel.cpp
parentMerge pull request #690 from runeksvendsen/qt-cmdline-options-parsing (diff)
parentCode cleanup: use ECDSA_size() instead of fixed 10,000 byte sig buffer, and e... (diff)
downloaddiscoin-74f5435e104be76cd342a9a196ed4a10b8a7e248.tar.xz
discoin-74f5435e104be76cd342a9a196ed4a10b8a7e248.zip
Merge pull request #716 from gavinandresen/cleanup
Cleanups suggested by genjix
Diffstat (limited to 'src/qt/optionsmodel.cpp')
-rw-r--r--src/qt/optionsmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp
index efc216dab..eef91db5b 100644
--- a/src/qt/optionsmodel.cpp
+++ b/src/qt/optionsmodel.cpp
@@ -101,7 +101,7 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in
case ProxyPort:
{
int nPort = atoi(value.toString().toAscii().data());
- if (nPort > 0 && nPort < USHRT_MAX)
+ if (nPort > 0 && nPort < std::numeric_limits<unsigned short>::max())
{
addrProxy.port = htons(nPort);
walletdb.WriteSetting("addrProxy", addrProxy);