diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-02-03 10:38:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-02-03 10:38:56 +0000 |
commit | e90a3ec9cbc98d73dfeb2175ee12edfb56af11ee (patch) | |
tree | 77b833e5189847e84933ce3269aaa05ffda24138 /lib/includes | |
parent | b289a24a07d9fe67e8cd9ea0247987e009df6d50 (diff) | |
parent | 55f2219ab98b039f256671c5e584a61ab52bfed0 (diff) |
Merge "[HICN-489] Add iOS support to hicn stack"
Diffstat (limited to 'lib/includes')
-rw-r--r-- | lib/includes/hicn/util/map.h | 2 | ||||
-rw-r--r-- | lib/includes/hicn/util/set.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/includes/hicn/util/map.h b/lib/includes/hicn/util/map.h index 1ac5812ef..01195865e 100644 --- a/lib/includes/hicn/util/map.h +++ b/lib/includes/hicn/util/map.h @@ -94,7 +94,7 @@ NAME ## _pair_snprintf(char * buf, size_t size, const NAME ## _pair_t * pair) { if (rc < 0) \ return rc; \ rc = VALUE_SNPRINTF(buf+rc, BUFSIZE/2, (VAL_T)pair->value); \ - return rc; \ + return (int)rc; \ } \ \ TYPEDEF_SET(NAME ## _pair_set, NAME ## _pair_t *, NAME ## _pair_cmp, NAME ## _pair_snprintf); \ diff --git a/lib/includes/hicn/util/set.h b/lib/includes/hicn/util/set.h index b4673a673..bc2e3caac 100644 --- a/lib/includes/hicn/util/set.h +++ b/lib/includes/hicn/util/set.h @@ -232,7 +232,7 @@ NAME ## _get_array(const NAME ## _t * set, T ** element) \ twalk(set->root, NAME ## _add_node_to_array); \ NAME ## _array_pos = NULL; \ END: \ - return set->size; \ + return (int)(set->size); \ } #endif /* UTIL_SET_H */ |