Permalink
Browse files

Fix the way we format file sizes (thanks to thedroid)

  • Loading branch information...
1 parent 702a011 commit 1ce2c4a1c22db48b2bcdb518d1c07b6079f4bd0e @elan elan committed Dec 25, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/lib/libGoAhead/XBMChttp.cpp
@@ -1429,7 +1429,7 @@ int CXbmcHttp::xbmcGetCurrentlyPlaying(int numParas, CStdString paras[])
fileItem.m_dwSize = fileSize(fileItem.m_strPath);
if (fileItem.m_dwSize)
{
- tmp.Format("%I64d",fileItem.m_dwSize);
+ tmp.Format(PRId64,fileItem.m_dwSize);
output+=closeTag+openTag+"File size:"+tmp;
}
if (changed)
@@ -2331,7 +2331,7 @@ int CXbmcHttp::xbmcFileSize(int numParas, CStdString paras[])
if (filesize>-1)
{
CStdString tmp;
- tmp.Format("%I64d",filesize);
+ tmp.Format(PRId64,filesize);
return SetResponse(openTag+tmp);
}
else

0 comments on commit 1ce2c4a

Please sign in to comment.