pcsx2: fixed some msvc++ compiler warnings

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1633 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
cottonvibes 2009-08-16 06:22:45 +00:00
parent a364c72a57
commit 05bf33c35c
1 changed files with 5 additions and 5 deletions

View File

@ -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 <class T>
static __forceinline bool STR(T tag) { return (tag->chcr & CHCR_STR); }
static __forceinline bool STR(T tag) { return !!(tag->chcr & CHCR_STR); }
template <class T>
static __forceinline bool TIE(T tag) { return (tag->chcr & CHCR_TIE); }
static __forceinline bool TIE(T tag) { return !!(tag->chcr & CHCR_TIE); }
template <class T>
static __forceinline bool TTE(T tag) { return (tag->chcr & CHCR_TTE); }
static __forceinline bool TTE(T tag) { return !!(tag->chcr & CHCR_TTE); }
template <class T>
static __forceinline u8 DIR(T tag) { return (tag->chcr & CHCR_DIR); }