aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-06-21 13:16:33 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-06-21 13:16:33 +0300
commitc100c398f50c926a0d37960de27ac3ee512f4094 (patch)
tree7b19d392f8557ecb267e803f6b69fc151d61f1a2
parenteea852092b0317359f1931c2adc8574a84747084 (diff)
downloadbcgen-c100c398f50c926a0d37960de27ac3ee512f4094.tar.gz
bcgen-c100c398f50c926a0d37960de27ac3ee512f4094.zip
fix case of zero parametersHEADmaster
-rwxr-xr-xbcgen2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcgen b/bcgen
index 0165512..30fd381 100755
--- a/bcgen
+++ b/bcgen
@@ -219,7 +219,7 @@ def num_imms(fmt):
def gen_hash(fmt):
n = 0
i = 0
- r = ""
+ r = "0"
for p in fmt[1:]:
if p == 'R' or p == 'F':
r += ' + (a' + str(n) + ' << (' + str(i) + ' * 8))'