Skip to content

Commit 0b52a25

Browse files
committed
[C++] Warnings cleanup.
1 parent 87c224a commit 0b52a25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sbe-benchmarks/src/main/cpp/CodecBench.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class CodecBench
2323
public:
2424
int encode_buffer(char *buffer, const int bufferLength)
2525
{
26-
return static_cast<Derived *>(this)->encode(buffer, bufferLength);
26+
return static_cast<int>(static_cast<Derived *>(this)->encode(buffer, bufferLength));
2727
};
2828

2929
int decode_buffer(const char *buffer, const int bufferLength)
3030
{
31-
return static_cast<Derived *>(this)->decode(buffer, bufferLength);
31+
return static_cast<int>(static_cast<Derived *>(this)->decode(buffer, bufferLength));
3232
};
3333

3434
/*
@@ -97,7 +97,9 @@ class CodecBench
9797
{
9898
ptr += encode_buffer(ptr, bufferLength);
9999
}
100+
100101
ptr = buffer;
102+
101103
for (int i = 0; i < n; i++)
102104
{
103105
ptr += decode_buffer(ptr, bufferLength);

0 commit comments

Comments
 (0)