summaryrefslogtreecommitdiff
path: root/tests/test_version.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-19 07:06:47 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-19 07:06:47 -0700
commit208e2cf0432a0f2865a225a9dc51917191c6cd04 (patch)
treefc5627bd17ec4e714664bb227235455ab487eac2 /tests/test_version.cpp
parent867bd2583bf0abc374a096a8c4f41b9b1f38d3a4 (diff)
Change PUGI__SNPRINTF to use _countof for MSVC
The macro only works correctly when the input argument is an array with a statically known size - pointers or arrays decayed to pointers won't work silently. While this is unlikely to surface issues that aren't caught in tests/code review, use _countof for MSVC to prevent such code from compiling.
Diffstat (limited to 'tests/test_version.cpp')
0 files changed, 0 insertions, 0 deletions