Fix wrong sign condition check

Fix wrong sign condition check (C_P) in condition() function. The condition only depends on the sign flag (F_S).
Merge pull request #1 from cloose/master

Fix wrong sign condition check