Skip to content

Commit

Permalink
Fix the way we format file sizes (thanks to thedroid)
Browse files Browse the repository at this point in the history
  • Loading branch information
elan committed Dec 25, 2008
1 parent 702a011 commit 1ce2c4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/lib/libGoAhead/XBMChttp.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1ce2c4a

Please sign in to comment.