X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FException.cmm;h=6e656e07a0f912c0fc3dd80fd2a1e2a2989860bb;hp=5c2ee95846de1d781273e8ac438d0ce59463995e;hb=33db60082554c323f66369e02808d3df5970a36d;hpb=fb684b4309f0d9b3eb823961c93271a406cd1bf6 diff --git a/rts/Exception.cmm b/rts/Exception.cmm index 5c2ee95..6e656e0 100644 --- a/rts/Exception.cmm +++ b/rts/Exception.cmm @@ -329,7 +329,7 @@ raisezh_fast /* ToDo: currently this is a hack. Would be much better if * the info was only displayed for an *uncaught* exception. */ - if (RtsFlags_ProfFlags_showCCSOnException(RtsFlags)) { + if (RtsFlags_ProfFlags_showCCSOnException(RtsFlags) != 0) { foreign "C" fprintCCS_stderr(W_[CCCS] "ptr"); } #endif @@ -348,7 +348,7 @@ retry_pop_stack: r = foreign "C" stmValidateNestOfTransactions(trec "ptr"); foreign "C" stmAbortTransaction(MyCapability() "ptr", trec "ptr"); StgTSO_trec(CurrentTSO) = NO_TREC; - if (r) { + if (r != 0) { // Transaction was valid: continue searching for a catch frame Sp = Sp + SIZEOF_StgAtomicallyFrame; goto retry_pop_stack;