1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

Fixed a few Android warnings when building for ARM 64-bit

This commit is contained in:
hogliux 2017-02-28 14:03:45 +00:00
parent 2bea97e24e
commit 0edd0e4632
3 changed files with 5 additions and 5 deletions

View file

@ -317,7 +317,7 @@ public:
void enqueueBuffer ()
{
(*queue)->Enqueue (queue, getCurrentBuffer(), getBufferSizeInSamples() * sizeof (T));
(*queue)->Enqueue (queue, getCurrentBuffer(), static_cast<SLuint32> (getBufferSizeInSamples() * sizeof (T)));
++numBlocksOut;
}

View file

@ -237,7 +237,7 @@ int SystemStats::getMemorySizeInMegabytes()
struct sysinfo sysi;
if (sysinfo (&sysi) == 0)
return (sysi.totalram * sysi.mem_unit / (1024 * 1024));
return (static_cast<int> (sysi.totalram * sysi.mem_unit) / (1024 * 1024));
#endif
return 0;
@ -245,7 +245,7 @@ int SystemStats::getMemorySizeInMegabytes()
int SystemStats::getPageSize()
{
return sysconf (_SC_PAGESIZE);
return static_cast<int> (sysconf (_SC_PAGESIZE));
}
//==============================================================================

View file

@ -412,8 +412,8 @@ bool File::setFileTimesInternal (int64 modificationTime, int64 accessTime, int64
if ((modificationTime != 0 || accessTime != 0) && juce_stat (fullPath, info))
{
struct utimbuf times;
times.actime = (time_t) (accessTime != 0 ? (accessTime / 1000) : info.st_atime);
times.modtime = (time_t) (modificationTime != 0 ? (modificationTime / 1000) : info.st_mtime);
times.actime = accessTime != 0 ? static_cast<time_t> (accessTime / 1000) : static_cast<time_t> (info.st_atime);
times.modtime = modificationTime != 0 ? static_cast<time_t> (modificationTime / 1000) : static_cast<time_t> (info.st_mtime);
return utime (fullPath.toUTF8(), &times) == 0;
}