Skip to content

Commit

Permalink
Portability fix (#27, closes #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jivanpal authored Sep 23, 2021
1 parent e50f295 commit 8cb224f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/drat/string/j.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>

#if defined(__APPLE__) || defined(__BSD__)
#include <sys/stat.h>
Expand Down Expand Up @@ -50,7 +51,7 @@

// Helper function for printing objects which have xfields
static void print_xf_details(bool has_xfields, xf_blob_t* xfields) {
printf("Number of extended fields: %"PRIu16"\n", has_xfields ? xfields->xf_num_exts : 0);
printf("Number of extended fields: %"PRIu16"\n", (uint16_t)(has_xfields ? xfields->xf_num_exts : 0));
if (has_xfields) {
printf("Details of extended fields:\n\n");
xf_pair_t** xf_pairs_array = get_xf_pairs_array(xfields);
Expand Down

0 comments on commit 8cb224f

Please sign in to comment.