Skip to content

Commit 43a0099

Browse files
datumboxfacebook-github-bot
authored andcommitted
[fbsync] Fixed a couple of typos and removed unnecessary bracket (#4345)
Summary: * Fixed a couple of typos and removed unnecessary bracket * Fixed clang error Reviewed By: fmassa Differential Revision: D30793325 fbshipit-source-id: 6846ce295fcb144e4d936de759da8934d35d2059
1 parent 8fc1811 commit 43a0099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torchvision/csrc/io/image/cpu/encode_jpeg.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ torch::Tensor encode_jpeg(const torch::Tensor& data, int64_t quality) {
1414

1515
#else
1616
// For libjpeg version <= 9b, the out_size parameter in jpeg_mem_dest() is
17-
// defined as unsigned long, where as in later version, it is defined as size_t.
17+
// defined as unsigned long, whereas in later version, it is defined as size_t.
1818
// For windows backward compatibility, we define JpegSizeType as different types
19-
// according to the libjpeg version used, in order to prevent compilcation
19+
// according to the libjpeg version used, in order to prevent compilation
2020
// errors.
2121
#if defined(_WIN32) || !defined(JPEG_LIB_VERSION_MAJOR) || \
22-
(JPEG_LIB_VERSION_MAJOR < 9) || \
22+
JPEG_LIB_VERSION_MAJOR < 9 || \
2323
(JPEG_LIB_VERSION_MAJOR == 9 && JPEG_LIB_VERSION_MINOR <= 2)
2424
using JpegSizeType = unsigned long;
2525
#else

0 commit comments

Comments
 (0)