File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 16
16
* See the License for the specific language governing permissions and
17
17
* limitations under the License.
18
18
*/
19
-
19
+
20
20
// 64-bit Integer library, originally from Long.js by dcodeIO
21
21
// https://github.com/dcodeIO/Long.js
22
22
// License Apache 2
@@ -94,7 +94,7 @@ class Integer {
94
94
if ( this . isZero ( ) )
95
95
return '0' ;
96
96
var rem ;
97
- if ( this . isNegative ( ) ) {
97
+ if ( this . isNegative ( ) ) {
98
98
if ( this . equals ( Integer . MIN_VALUE ) ) {
99
99
// We need to change the Integer value before it can be negated, so we remove
100
100
// the bottom-most digit in this base and then recurse to do the rest.
@@ -162,7 +162,7 @@ class Integer {
162
162
*/
163
163
isZero ( ) {
164
164
return this . high === 0 && this . low === 0 ;
165
- }
165
+ }
166
166
167
167
/**
168
168
* Tests if this Integer's value is negative.
@@ -205,8 +205,6 @@ class Integer {
205
205
equals ( other ) {
206
206
if ( ! Integer . isInteger ( other ) )
207
207
other = Integer . fromValue ( other ) ;
208
- if ( ( this . high >>> 31 ) === 1 && ( other . high >>> 31 ) === 1 )
209
- return false ;
210
208
return this . high === other . high && this . low === other . low ;
211
209
}
212
210
@@ -821,4 +819,4 @@ export default {
821
819
Integer,
822
820
int,
823
821
isInt
824
- }
822
+ }
Original file line number Diff line number Diff line change @@ -54,8 +54,7 @@ class Result {
54
54
let observer = {
55
55
onNext : ( record ) => { records . push ( record ) ; } ,
56
56
onCompleted : ( summary ) => {
57
- records . summary = summary ;
58
- resolve ( records ) ;
57
+ resolve ( { records, summary} ) ;
59
58
} ,
60
59
onError : ( error ) => { reject ( error ) ; }
61
60
} ;
You can’t perform that action at this time.
0 commit comments