mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
a364c72a57
commit
05bf33c35c
10
pcsx2/Tags.h
10
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 <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); }
|
||||
|
|
Loading…
Reference in New Issue