diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-06-15 03:23:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-06-15 03:23:43 +0200 |
commit | 4a5049a834b45f9a75d0f622bac45e77a42d3cf3 (patch) | |
tree | b8a135b533fcfc196862c114eb4a5070afff558e | |
parent | Cast to uint instead of int to avoid negative. (diff) | |
download | JsonScgiQt-4a5049a834b45f9a75d0f622bac45e77a42d3cf3.tar.xz JsonScgiQt-4a5049a834b45f9a75d0f622bac45e77a42d3cf3.zip |
That one too.
-rw-r--r-- | lib/JsonScgiPeer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/JsonScgiPeer.cpp b/lib/JsonScgiPeer.cpp index 7b984f8..81971e7 100644 --- a/lib/JsonScgiPeer.cpp +++ b/lib/JsonScgiPeer.cpp @@ -62,7 +62,7 @@ void JsonScgiPeer::parseScgiHeader() if (i == -1) return; bool ok; - m_jsonOffset = m_inputBuffer.left(i).toInt(&ok) + 2 + i; + m_jsonOffset = m_inputBuffer.left(i).toUInt(&ok) + 2 + i; if (!ok) return; |