You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "kreats (JIRA)" <ji...@apache.org> on 2016/04/01 04:28:25 UTC

[jira] [Commented] (TS-4315) mistype Conditional ? : Operator

    [ https://issues.apache.org/jira/browse/TS-4315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15221022#comment-15221022 ] 

kreats commented on TS-4315:
----------------------------

the original code:
{code:title=iocore/eventsystem/I_Action.h}
208 #define ACTION_RESULT(_x) \
209   (int)((((uintptr_t)_x)&1)!=0?(((uintptr_t)>>1):(uintptr_t)0))
{code}

it should be like below:
{code:title=iocore/eventsystem/I_Action.h}
208 #define ACTION_RESULT(_x) \
209   (int)((((uintptr_t)_x)&1)!=0? ((uintptr_t)>>1):(uintptr_t)0 )
{code}

> mistype Conditional ? : Operator
> --------------------------------
>
>                 Key: TS-4315
>                 URL: https://issues.apache.org/jira/browse/TS-4315
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: kreats
>
> redundant parentheses makes *Conditional Operator(?\:)* lack of an operand.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)