diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2020-05-26 23:48:28 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-05-26 23:48:34 +0300 |
commit | 9b25adf30c7dd026ae0964ee066e2fbfa61c24b3 (patch) | |
tree | b9adb64e7eadadbd6ddad8b000d5129a3275857e /jni_jpegstream/src/jpeg_hook.cpp | |
parent | 72e7ad5eae7323b001f8df52d782ef731bbccb95 (diff) | |
download | android_packages_apps_Gallery2-9b25adf30c7dd026ae0964ee066e2fbfa61c24b3.tar.gz android_packages_apps_Gallery2-9b25adf30c7dd026ae0964ee066e2fbfa61c24b3.tar.bz2 android_packages_apps_Gallery2-9b25adf30c7dd026ae0964ee066e2fbfa61c24b3.zip |
Revert "Fix compiling warnings"
* We'll take the upstream fix
This reverts commit 2ba45029b40b4932fc112efb102dd6b59b757d8a.
Change-Id: I067db32fe72db2b177b55cf68562daf227931e7a
Diffstat (limited to 'jni_jpegstream/src/jpeg_hook.cpp')
-rw-r--r-- | jni_jpegstream/src/jpeg_hook.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jni_jpegstream/src/jpeg_hook.cpp b/jni_jpegstream/src/jpeg_hook.cpp index b4d4dd302..cca54e405 100644 --- a/jni_jpegstream/src/jpeg_hook.cpp +++ b/jni_jpegstream/src/jpeg_hook.cpp @@ -121,7 +121,7 @@ void Mgr_skip_input_data_fcn(j_decompress_ptr cinfo, long num_bytes) { return; } SourceManager *src = reinterpret_cast<SourceManager*>(cinfo->src); - if (src->mgr.bytes_in_buffer >= (size_t)num_bytes) { + if (src->mgr.bytes_in_buffer >= num_bytes) { src->mgr.bytes_in_buffer -= num_bytes; src->mgr.next_input_byte += num_bytes; } else { @@ -151,7 +151,6 @@ void Mgr_skip_input_data_fcn(j_decompress_ptr cinfo, long num_bytes) { void Mgr_term_source_fcn(j_decompress_ptr cinfo) { //noop - (void)cinfo; } int32_t MakeSrc(j_decompress_ptr cinfo, JNIEnv *env, jobject inStream){ |