diff options
| author | 2016-01-15 07:59:52 +0000 | |
|---|---|---|
| committer | 2016-01-15 07:59:52 +0000 | |
| commit | 8414c671bd6c490bbbfbe51d7b2f8f32a6fb58e4 (patch) | |
| tree | bafc77b4be87661e12a740c4cf65122e22e79586 | |
| parent | 111490a8e4e88b41714a0fa34a02c8257c9cc2e9 (diff) | |
| parent | fab4a97a7964020d76ebcb6d13817b6985cb3744 (diff) | |
Merge "Fix compile error introduced by ag/842950."
| -rw-r--r-- | packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp b/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp index eb9e8eba9f14..cde28fce1cc5 100644 --- a/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp +++ b/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp @@ -45,7 +45,7 @@ constexpr size_t NUM_MAX_HANDLES = 1024; // The request size is bounded by the maximum size of a FUSE_WRITE request // because it has the largest possible data payload. constexpr size_t MAX_REQUEST_SIZE = sizeof(struct fuse_in_header) + - sizeof(struct fuse_write_in) + std::max(MAX_WRITE, MAX_READ); + sizeof(struct fuse_write_in) + (MAX_WRITE > MAX_READ ? MAX_WRITE : MAX_READ); static jclass app_fuse_class; static jmethodID app_fuse_get_file_size; |