Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-3088

SumGlobalStep returns a long value even the highest common type's bit <= 32

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • 3.7.2
    • 4.0.0
    • process
    • None

    Description

      This happens because in

      @Override
      public S projectTraverser(final Traverser.Admin<S> traverser) {
          return (S) mul(traverser.get(), traverser.bulk());
      }

      It multiplies with bulk, which is Long type, so upcasted. This is at least not in semantics and unexpected behavior

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            redtree1112 Norio Akagi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: