From 6b574175dd43735a26f171de6b34c3f15bb50f12 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 22 Feb 2011 11:31:32 -0800 Subject: Prevent the default message from getting mutated. If a Lua program references the default message, it will be copied into a mutable object. --- benchmarks/google_messages.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmarks/google_messages.proto') diff --git a/benchmarks/google_messages.proto b/benchmarks/google_messages.proto index 17cace7..b43e94b 100644 --- a/benchmarks/google_messages.proto +++ b/benchmarks/google_messages.proto @@ -51,7 +51,7 @@ message SpeedMessage1SubMessage { optional int32 field1 = 1 [default=0]; optional int32 field2 = 2 [default=0]; optional int32 field3 = 3 [default=0]; - optional string field15 = 15; + optional string field15 = 15 [default="FOOBAR!"]; optional bool field12 = 12 [default=true]; optional int64 field13 = 13; optional int64 field14 = 14; -- cgit v1.2.3