Commit 8c834b60 8c834b60399ac1ef71569a4cedee25bd30b8d07c by Sergey Poznyakoff

Fix typecasts in sieve

* libmu_sieve/sieve.y (sieve_parse): Make sure 0 is properly promoted
to sieve_instr_t.
1 parent c07fc42c
...@@ -1516,7 +1516,7 @@ sieve_parse (void) ...@@ -1516,7 +1516,7 @@ sieve_parse (void)
1516 mu_error (_("Optimized parse tree")); 1516 mu_error (_("Optimized parse tree"));
1517 tree_dump (mu_strerr, sieve_tree, 0, mu_sieve_machine); 1517 tree_dump (mu_strerr, sieve_tree, 0, mu_sieve_machine);
1518 } 1518 }
1519 mu_i_sv_code (mu_sieve_machine, (sieve_op_t) 0); 1519 mu_i_sv_code (mu_sieve_machine, (sieve_op_t) (sieve_instr_t) 0);
1520 1520
1521 /* Clear location, so that mu_i_sv_locus will do its job. */ 1521 /* Clear location, so that mu_i_sv_locus will do its job. */
1522 mu_sieve_machine->locus.mu_file = NULL; 1522 mu_sieve_machine->locus.mu_file = NULL;
...@@ -1524,7 +1524,7 @@ sieve_parse (void) ...@@ -1524,7 +1524,7 @@ sieve_parse (void)
1524 mu_sieve_machine->locus.mu_col = 0; 1524 mu_sieve_machine->locus.mu_col = 0;
1525 1525
1526 tree_code (mu_sieve_machine, sieve_tree); 1526 tree_code (mu_sieve_machine, sieve_tree);
1527 mu_i_sv_code (mu_sieve_machine, (sieve_op_t) 0); 1527 mu_i_sv_code (mu_sieve_machine, (sieve_op_t) (sieve_instr_t) 0);
1528 } 1528 }
1529 1529
1530 if (rc == 0) 1530 if (rc == 0)
......