From 05bf33c35cb73cb2ebe736ec704c9a07de9c29ae Mon Sep 17 00:00:00 2001 From: cottonvibes Date: Sun, 16 Aug 2009 06:22:45 +0000 Subject: [PATCH] pcsx2: fixed some msvc++ compiler warnings git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1633 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Tags.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pcsx2/Tags.h b/pcsx2/Tags.h index 35780fb1c2..61551657d0 100644 --- a/pcsx2/Tags.h +++ b/pcsx2/Tags.h @@ -118,12 +118,12 @@ namespace ChainTags static __forceinline bool IRQ(u32 *tag) { - return (tag[0] & 0x8000000); + return !!(tag[0] & 0x8000000); } static __forceinline bool IRQ(u32 tag) { - return (tag & 0x8000000); + return !!(tag & 0x8000000); } } @@ -131,13 +131,13 @@ namespace CHCR { // Query the flags in the channel control register. template - static __forceinline bool STR(T tag) { return (tag->chcr & CHCR_STR); } + static __forceinline bool STR(T tag) { return !!(tag->chcr & CHCR_STR); } template - static __forceinline bool TIE(T tag) { return (tag->chcr & CHCR_TIE); } + static __forceinline bool TIE(T tag) { return !!(tag->chcr & CHCR_TIE); } template - static __forceinline bool TTE(T tag) { return (tag->chcr & CHCR_TTE); } + static __forceinline bool TTE(T tag) { return !!(tag->chcr & CHCR_TTE); } template static __forceinline u8 DIR(T tag) { return (tag->chcr & CHCR_DIR); }