File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ _num_app:
3636 for i in 0 ..apps. len ( ) {
3737 writeln ! ( f, r#" .quad app_{}_start"# , i) ?;
3838 }
39- writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
39+ if !apps. is_empty ( ) {
40+ writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
41+ }
4042
4143 for ( idx, app) in apps. iter ( ) . enumerate ( ) {
4244 println ! ( "app_{}: {}" , idx, app) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ _num_app:
3939 for i in 0 ..apps. len ( ) {
4040 writeln ! ( f, r#" .quad app_{}_start"# , i) ?;
4141 }
42- writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
42+ if !apps. is_empty ( ) {
43+ writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
44+ }
4345
4446 for ( idx, app) in apps. iter ( ) . enumerate ( ) {
4547 println ! ( "app_{}: {}" , idx, app) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ _num_app:
3939 for i in 0 ..apps. len ( ) {
4040 writeln ! ( f, r#" .quad app_{}_start"# , i) ?;
4141 }
42- writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
42+ if !apps. is_empty ( ) {
43+ writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
44+ }
4345
4446 for ( idx, app) in apps. iter ( ) . enumerate ( ) {
4547 println ! ( "app_{}: {}" , idx, app) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ _num_app:
4040 for i in 0 ..apps. len ( ) {
4141 writeln ! ( f, r#" .quad app_{}_start"# , i) ?;
4242 }
43- writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
43+ if !apps. is_empty ( ) {
44+ writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
45+ }
4446
4547 writeln ! (
4648 f,
You can’t perform that action at this time.
0 commit comments