Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Unified Diff: lib/protobuf.dart

Issue 25634007: Update the protocol buffer library to use Int64 from the fixnum package (Closed) Base URL: https://github.com/dart-lang/dart-protobuf.git@master
Patch Set: Minor fixes Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/pb_list.dart ('k') | lib/unknown_field_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/protobuf.dart
diff --git a/lib/protobuf.dart b/lib/protobuf.dart
index 08f00ebef0f822592ae74480a2fdc944d44b6fcd..5510f7f780276c44978164d89f7649aee036b789 100644
--- a/lib/protobuf.dart
+++ b/lib/protobuf.dart
@@ -12,6 +12,7 @@ import 'dart:typed_data';
import 'dart:utf';
import 'package:crypto/crypto.dart';
+import 'package:fixnum/fixnum.dart';
part 'coded_buffer_reader.dart';
part 'coded_buffer_writer.dart';
@@ -27,7 +28,4 @@ part 'unknown_field_set.dart';
part 'utils.dart';
part 'wire_format.dart';
-makeLongInt(n) =>
- new ByteData(8)
- ..setUint32(0, n & 0xffffffff, Endianness.LITTLE_ENDIAN)
- ..setUint32(4, (n >> 32) & 0xffffffff, Endianness.LITTLE_ENDIAN);
+makeLongInt(n) => new Int64.fromInt(n);
« no previous file with comments | « lib/pb_list.dart ('k') | lib/unknown_field_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698