Skip to content

Commit

Permalink
Fixed a couple of typos and removed unnecessary bracket (pytorch#4345)
Browse files Browse the repository at this point in the history
* Fixed a couple of typos and removed unnecessary bracket

* Fixed clang error
  • Loading branch information
prabhat00155 committed Sep 1, 2021
1 parent 848838f commit 5772590
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torchvision/csrc/io/image/cpu/encode_jpeg.cpp
Expand Up @@ -14,12 +14,12 @@ torch::Tensor encode_jpeg(const torch::Tensor& data, int64_t quality) {

#else
// For libjpeg version <= 9b, the out_size parameter in jpeg_mem_dest() is
// defined as unsigned long, where as in later version, it is defined as size_t.
// defined as unsigned long, whereas in later version, it is defined as size_t.
// For windows backward compatibility, we define JpegSizeType as different types
// according to the libjpeg version used, in order to prevent compilcation
// according to the libjpeg version used, in order to prevent compilation
// errors.
#if defined(_WIN32) || !defined(JPEG_LIB_VERSION_MAJOR) || \
(JPEG_LIB_VERSION_MAJOR < 9) || \
JPEG_LIB_VERSION_MAJOR < 9 || \
(JPEG_LIB_VERSION_MAJOR == 9 && JPEG_LIB_VERSION_MINOR <= 2)
using JpegSizeType = unsigned long;
#else
Expand Down

0 comments on commit 5772590

Please sign in to comment.