Skip to content

Commit

Permalink
EXAMPLES: Simplify binary data printf
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Oct 11, 2023
1 parent 845ebc0 commit 504db04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/c/sail/sail.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static void print_aligned_image_info(const struct sail_image *image) {
case SAIL_VARIANT_TYPE_FLOAT: printf("%.1f\n", sail_variant_to_float(meta_data->value)); break;
case SAIL_VARIANT_TYPE_DOUBLE: printf("%.1f\n", sail_variant_to_double(meta_data->value)); break;
case SAIL_VARIANT_TYPE_STRING: printf("%s\n", sail_variant_to_string(meta_data->value)); break;
case SAIL_VARIANT_TYPE_DATA: printf("<binary data, length: %u byte(s)>\n", (unsigned)meta_data->value->size); break;
case SAIL_VARIANT_TYPE_DATA: printf("<binary data, %u byte(s)>\n", (unsigned)meta_data->value->size); break;
case SAIL_VARIANT_TYPE_INVALID: printf("<invalid value>\n"); break;
}
}
Expand Down

0 comments on commit 504db04

Please sign in to comment.