Skip to content

Commit

Permalink
Fix C5246 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Saalvage committed May 14, 2022
1 parent a6208a6 commit c8274bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doctest/doctest.h
Original file line number Diff line number Diff line change
Expand Up @@ -3288,7 +3288,7 @@ typedef timer_large_integer::type ticks_t;
ticks_t getCurrentTicks() { return DOCTEST_CONFIG_GETCURRENTTICKS(); }
#elif defined(DOCTEST_PLATFORM_WINDOWS)
ticks_t getCurrentTicks() {
static LARGE_INTEGER hz = {0}, hzo = {0};
static LARGE_INTEGER hz = { {0} }, hzo = { {0} };
if(!hz.QuadPart) {
QueryPerformanceFrequency(&hz);
QueryPerformanceCounter(&hzo);
Expand Down
2 changes: 1 addition & 1 deletion doctest/parts/doctest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ typedef timer_large_integer::type ticks_t;
ticks_t getCurrentTicks() { return DOCTEST_CONFIG_GETCURRENTTICKS(); }
#elif defined(DOCTEST_PLATFORM_WINDOWS)
ticks_t getCurrentTicks() {
static LARGE_INTEGER hz = {0}, hzo = {0};
static LARGE_INTEGER hz = { {0} }, hzo = { {0} };
if(!hz.QuadPart) {
QueryPerformanceFrequency(&hz);
QueryPerformanceCounter(&hzo);
Expand Down

0 comments on commit c8274bd

Please sign in to comment.