UInt32 and ==
UInt32 and ==
- Subject: UInt32 and ==
- From: Jaeho Chang <email@hidden>
- Date: Tue, 9 Apr 2002 22:46:20 +0900
This is not a Cocoa question, but may be Obj-C specific...
(or may be a very basic problem that I'm missing...)
Question:
auParamInfo.flags is declared as UInt32,
and kAudioUnitParameterFlag_IsReadable = (1L << 30)
This does not return right results:
- (Boolean) isReadable
{
return (auParamInfo.flags & kAudioUnitParameterFlag_IsReadable);
}
but this does:
- (Boolean) isReadable
{
return (((UInt32) auParamInfo.flags &
kAudioUnitParameterFlag_IsReadable) == ((UInt32)
kAudioUnitParameterFlag_IsReadable));
}
Could someone explain why this is?
Thanks in advance.
Joe.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.