diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-12-11 17:56:34 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-12 03:37:07 +0100 |
commit | 841bdf3462ded58266eb884efcbb043579995617 (patch) | |
tree | a78d1b96b546c748e8b8fa36adf9e68b3fa41238 /qt-ui/subsurfacewebservices.cpp | |
parent | 0a57befb690af54304fd5957f35071db33feb011 (diff) | |
download | subsurface-841bdf3462ded58266eb884efcbb043579995617.tar.gz |
Make the streamsize variable actually int
Casting a pointer to a size_t variable to a pointer to int is wrong on
big endian machines. Not that I expect anyone to compile Subsurface 4
for Mac on PowerPC 64-bit, but just in case... Who knows, we may have
some Solaris-on-UltraSPARC or AIX-on-POWER6 users.
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index 5f52154e1..7828b4012 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -110,7 +110,7 @@ static char *prepare_dives_for_divelogs(const bool selected) struct dive *dive; FILE *f; char filename[PATH_MAX], *tempfile; - size_t streamsize; + int streamsize; char *membuf; xmlDoc *doc; xsltStylesheetPtr xslt = NULL; @@ -173,7 +173,7 @@ static char *prepare_dives_for_divelogs(const bool selected) } free((void *)membuf); transformed = xsltApplyStylesheet(xslt, doc, NULL); - xmlDocDumpMemory(transformed, (xmlChar **) &membuf, (int *)&streamsize); + xmlDocDumpMemory(transformed, (xmlChar **) &membuf, &streamsize); xmlFreeDoc(doc); xmlFreeDoc(transformed); /* |