projects
/
konrad/tzone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2688918
)
minor fix for platform independence
author
konrad
<konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 1 May 2011 10:20:23 +0000 (10:20 +0000)
committer
konrad
<konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 1 May 2011 10:20:23 +0000 (10:20 +0000)
git-svn-id: https://silmor.de/svn/softmagic/tzone/trunk@749
6e3c4bff
-ac9f-4ac1-96c5-
d2ea494d3e33
src/tzhelp.h
patch
|
blob
|
history
diff --git
a/src/tzhelp.h
b/src/tzhelp.h
index
c6f5bbe
..
8e1909f
100644
(file)
--- a/
src/tzhelp.h
+++ b/
src/tzhelp.h
@@
-28,7
+28,7
@@
inline qint64 decodeInt(const QByteArray&a,int s=4)
{
if(a.size()<s)return 0;
qint64 r=0;
- if(a[0]<0)r=-1;
+ if(((signed char)a[0])<0)r=-1;
for(int i=0;i<s;i++){
r<<=8;
r|=(unsigned char)a[i];