Merge "Fix possible integer overflow in MtpStorage"

This commit is contained in:
Amith Yamasani
2013-01-28 18:09:59 +00:00
committed by Gerrit Code Review

View File

@ -39,7 +39,7 @@ public class MtpStorage {
mStorageId = volume.getStorageId();
mPath = volume.getPath();
mDescription = context.getResources().getString(volume.getDescriptionId());
mReserveSpace = volume.getMtpReserveSpace() * 1024 * 1024;
mReserveSpace = volume.getMtpReserveSpace() * 1024L * 1024L;
mRemovable = volume.isRemovable();
mMaxFileSize = volume.getMaxFileSize();
}