Skip to content

Commit

Permalink
IGNITE-15332 CPP: Fix compilation on visual studio - Fixes apache#9343.
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Daschinsky <[email protected]>
  • Loading branch information
ivandasch committed Aug 18, 2021
1 parent 91c4b0d commit aba0f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/platforms/cpp/odbc-test/include/test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ inline void CopyStringToBuffer(char *dst, const std::string& src, size_t n) {
return;
}

size_t size = std::min(src.size(), n - 1);
using std::min;
size_t size = min(src.size(), n - 1);

memset(dst + size, '\0', n - size);
memcpy(dst, src.c_str(), size);
Expand Down

0 comments on commit aba0f10

Please sign in to comment.