Code Review
/
apps
/
low-level-can-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0848255
)
Same fix for EncodedSize.__mul__
author
Petteri Aimonen
<jpa@git.mail.kapsi.fi>
Thu, 24 Oct 2013 06:52:40 +0000
(09:52 +0300)
committer
Petteri Aimonen
<jpa@git.mail.kapsi.fi>
Thu, 24 Oct 2013 06:52:40 +0000
(09:52 +0300)
generator/nanopb_generator.py
patch
|
blob
|
history
diff --git
a/generator/nanopb_generator.py
b/generator/nanopb_generator.py
index
aa2c1b3
..
89647c2
100755
(executable)
--- a/
generator/nanopb_generator.py
+++ b/
generator/nanopb_generator.py
@@
-115,7
+115,7
@@
class EncodedSize:
raise ValueError("Cannot add size: " + repr(other))
def __mul__(self, other):
- if isinstance(other,
int
):
+ if isinstance(other,
(int, long)
):
return EncodedSize(self.value * other, [str(other) + '*' + s for s in self.symbols])
else:
raise ValueError("Cannot multiply size: " + repr(other))