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

ASF subversion and git services commented on KYLIN-3583:
--------------------------------------------------------

Commit aefaf9cccef7a21d96912ac55cf622d452d4d05c in kylin's branch 
refs/heads/master from chao long
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=aefaf9c ]

KYLIN-3583 Cast to long before multiplication


> Integer multiplication is performed where Long result is expected
> -----------------------------------------------------------------
>
>                 Key: KYLIN-3583
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3583
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> In RecordEventTimeDetail :
> {code}
>         long timeStampForWeekBegin = timeStamp;
>         timeStampForWeekBegin -= 3600000 * 24 * 
> (calendar.get(Calendar.DAY_OF_WEEK) - 1);
> {code}
> Casting to long should be done first before multiplication.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to