Skip to content

Commit

Permalink
Squash a couple of warnings in example-deconstructor-alt
Browse files Browse the repository at this point in the history
example-deconstructor-alt.c: In function ‘main’:
example-deconstructor-alt.c:649:51: warning:
  comparison between ‘yaml_sequence_style_t {aka enum yaml_sequence_style_e}’
  and ‘enum yaml_mapping_style_e’ [-Wenum-compare]

example-deconstructor-alt.c:650:36: warning:
  comparison between ‘yaml_sequence_style_t {aka enum yaml_sequence_style_e}’
  and ‘enum yaml_mapping_style_e’ [-Wenum-compare]
  • Loading branch information
tlsa authored and perlpunk committed Jun 6, 2019
1 parent a21fc21 commit aa2e893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/example-deconstructor-alt.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,10 +635,10 @@ main(int argc, char *argv[])

/* Display the style information. */

if (input_event.data.sequence_start.style)
if (input_event.data.mapping_start.style)
{
yaml_sequence_style_t style
= (yaml_sequence_style_t) input_event.data.mapping_start.style;
yaml_mapping_style_t style
= input_event.data.mapping_start.style;

/* Add 'style': <style>. */

Expand Down

0 comments on commit aa2e893

Please sign in to comment.