mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 02:00:15 +01:00
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:
1 parent
a364c72a57
commit
05bf33c35c
1 file changed
+5
-5
+5
-5
@@ -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); }
|
||||
|
||||
Reference in new issue
Block a user