From 090c74c420d429eda2474bc8e794b4274b7aae9c Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Wed, 4 Mar 2015 19:00:29 +0000 Subject: [PATCH] Use reinterpret_cast to eliminate some warnings #369 --- include/internal/catch_timer.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/internal/catch_timer.hpp b/include/internal/catch_timer.hpp index 988382b3..47d9536b 100644 --- a/include/internal/catch_timer.hpp +++ b/include/internal/catch_timer.hpp @@ -27,11 +27,11 @@ namespace Catch { uint64_t getCurrentTicks() { static uint64_t hz=0, hzo=0; if (!hz) { - QueryPerformanceFrequency((LARGE_INTEGER*)&hz); - QueryPerformanceCounter((LARGE_INTEGER*)&hzo); + QueryPerformanceFrequency( reinterpret_cast( &hz ) ); + QueryPerformanceCounter( reinterpret_cast( &hzo ) ); } uint64_t t; - QueryPerformanceCounter((LARGE_INTEGER*)&t); + QueryPerformanceCounter( reinterpret_cast( &t ) ); return ((t-hzo)*1000000)/hz; } #else