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

Unified Diff: lib/src/protobuf/generated_message.dart

Issue 814213003: Allow constants as field initial values as well as creation thunks (Closed) Base URL: https://github.com/dart-lang/dart-protobuf@master
Patch Set: Created 6 years 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/src/protobuf/field_info.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/protobuf/generated_message.dart
diff --git a/lib/src/protobuf/generated_message.dart b/lib/src/protobuf/generated_message.dart
index 16209b5c912ec5b7d09e7c4bdb8fa02a279e23e8..62d1a7c56a97994fc8f6a026bd075383abf0fdd7 100644
--- a/lib/src/protobuf/generated_message.dart
+++ b/lib/src/protobuf/generated_message.dart
@@ -489,7 +489,7 @@ abstract class GeneratedMessage {
int rawValue = input.readEnum();
var value = _getValueOfFunc(tagNumber, extensionRegistry)(rawValue);
if (value == null) {
- unknownFields.mergeVarintField(tagNumber, makeLongInt(rawValue));
+ unknownFields.mergeVarintField(tagNumber, new Int64(rawValue));
} else {
_fieldValues[tagNumber] = value;
}
@@ -564,7 +564,7 @@ abstract class GeneratedMessage {
int rawValue = input.readEnum();
var value = _getValueOfFunc(tagNumber, extensionRegistry)(rawValue);
if (value == null) {
- unknownFields.mergeVarintField(tagNumber, makeLongInt(rawValue));
+ unknownFields.mergeVarintField(tagNumber, new Int64(rawValue));
} else {
assigner(value);
}
« no previous file with comments | « lib/src/protobuf/field_info.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698