Skip to content

Commit 09ab668

Browse files
committed
fix clang-tidy bugprone-signed-char-misuse warning
1 parent 84030ff commit 09ab668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporters/otlp/src/otlp_file_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ class OPENTELEMETRY_LOCAL_SYMBOL OtlpFileSystemBackend : public OtlpFileAppender
12001200
{
12011201
if (file_pattern[i] == '%')
12021202
{
1203-
int checked = static_cast<int>(file_pattern[i + 1]);
1203+
int checked = static_cast<unsigned char>(file_pattern[i + 1]);
12041204
if (checked > 0 && checked < 128 && check_interval[checked] > 0)
12051205
{
12061206
if (0 == check_file_path_interval_ ||

0 commit comments

Comments
 (0)