Skip to content

Commit 32aea7f

Browse files
Fix for --scale-output with a zero final scale layer (#359)
1 parent 1411cb1 commit 32aea7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

izer/unload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def mlator_loop(
514514
out_text += '] = '
515515
else:
516516
out_text += f'{prefix} *out_buf++ = '
517-
if scale_output:
517+
if scale_output and final_scale[ll] != 0:
518518
if shift == 0:
519519
out_text += f'(int{o_width*2}_t)((val'
520520
else:

0 commit comments

Comments
 (0)