make it compile on pedantic compiler setting. XXX to jinmei: please check if the logic is correct (additional paren around && and ||)
make it compile on pedantic compiler setting.
XXX to jinmei: please check if the logic is correct
(additional paren around && and ||)

MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame