Skip to content

Commit

Permalink
Merge pull request #6 from krestenkrab/master
Browse files Browse the repository at this point in the history
fix problem with top-level field names
  • Loading branch information
sean-lin committed May 3, 2014
2 parents d7f9e3b + 8906dec commit f4f0d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/protoc-gen-lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Env(object):
node = self.lookup_name(type_name)
except:
# if the child doesn't be founded, it must be in this file
return type_name[len('.'.join(self.package)) + 2:]
return type_name[len('.'.join(self.package)) + 1:]
if node.filename != self.filename:
return node.filename + '_pb.' + node.get_local_name()
return node.get_local_name()
Expand Down

0 comments on commit f4f0d6d

Please sign in to comment.