Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2907

Check if a number is a positive integer

    XMLWordPrintableJSON

Details

    • Patch

    Description

      The function isPositiveShort does not seem correct, located in the core-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;
      }

      Attachments

        Issue Links

          Activity

            People

              gwang3 Wang, Gang
              whdsmile hedong.wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 6h
                  6h
                  Remaining:
                  Remaining Estimate - 6h
                  6h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified