You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "hedong.wang (JIRA)" <ji...@apache.org> on 2017/09/26 09:51:00 UTC

[jira] [Created] (KYLIN-2907) Check if a number is a positive integer

hedong.wang created KYLIN-2907:
----------------------------------

             Summary: Check if a number is a positive integer 
                 Key: KYLIN-2907
                 URL: https://issues.apache.org/jira/browse/KYLIN-2907
             Project: Kylin
          Issue Type: Bug
          Components: Tools, Build and Test
    Affects Versions: v2.1.0
         Environment: centos64
            Reporter: hedong.wang
            Assignee: hongbin ma
             Fix For: Future


The function isPositiveShort does not seem correct, located in thecore-common/src/main/java/org/apache/kylin/common/util/BytesUtil.java.
0xFFFF7000 should be 0xFFFF8000?!
code:
public static boolean isPositiveShort(int i) {
	return (i & 0xFFFF7000) == 0;
}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)