diff options
author | Callum Prentice <callum@lindenlab.com> | 2021-05-11 12:58:05 -0700 |
---|---|---|
committer | Callum Prentice <callum@lindenlab.com> | 2021-05-11 12:58:05 -0700 |
commit | 3898609ae24e7787d6f6ae71c2424b43102326bf (patch) | |
tree | 0efa9851df689ff39c5034dc57db647f0a5ba7e0 /indra/newview/llappviewer.cpp | |
parent | 99b99a1b4a21758ef888b251d8f8bbf565f8b42e (diff) |
Fix for SL-15226 Simple cache viewer: Integer overflow in cache size - via FS:Ansariel
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index a3d20a8e2f..c519e55fc3 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -4141,7 +4141,7 @@ bool LLAppViewer::initCache() const unsigned int cache_total_size_mb = gSavedSettings.getU32("CacheSize"); const double disk_cache_percent = gSavedSettings.getF32("DiskCachePercentOfTotal"); const unsigned int disk_cache_mb = cache_total_size_mb * disk_cache_percent / 100; - const unsigned int disk_cache_bytes = disk_cache_mb * 1024 * 1024; + const uintmax_t disk_cache_bytes = disk_cache_mb * 1024 * 1024; const bool enable_cache_debug_info = gSavedSettings.getBOOL("EnableDiskCacheDebugInfo"); bool texture_cache_mismatch = false; |