File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sbe-benchmarks/src/main/cpp Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ class CodecBench
2323public:
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);
You can’t perform that action at this time.
0 commit comments