summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
Diffstat (limited to 'generator')
-rwxr-xr-xgenerator/nanopb_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py
index 0f14a041..aa2c1b38 100755
--- a/generator/nanopb_generator.py
+++ b/generator/nanopb_generator.py
@@ -105,7 +105,7 @@ class EncodedSize:
self.symbols = symbols
def __add__(self, other):
- if isinstance(other, int):
+ if isinstance(other, (int, long)):
return EncodedSize(self.value + other, self.symbols)
elif isinstance(other, (str, Names)):
return EncodedSize(self.value, self.symbols + [str(other)])