fixed two situations where generated code needs more casts
1 file changed