Skip to content

Commit

Permalink
lone/aux: make auxiliary value type unsigned long
Browse files Browse the repository at this point in the history
This is consistent with other auxiliary value APIs I've seen.
  • Loading branch information
matheusmoreira committed Dec 8, 2023
1 parent ec21234 commit 05470ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/lone/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct lone_auxiliary_value {
};

struct lone_auxiliary_vector {
long type;
unsigned long type;
struct lone_auxiliary_value value;
};

Expand Down
2 changes: 1 addition & 1 deletion source/lone/auxiliary_vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <lone/auxiliary_vector.h>

struct lone_auxiliary_value lone_auxiliary_vector_value(struct lone_auxiliary_vector *auxiliary, long type)
struct lone_auxiliary_value lone_auxiliary_vector_value(struct lone_auxiliary_vector *auxiliary, unsigned long type)
{
for (/* auxiliary */; auxiliary->type != AT_NULL; ++auxiliary) {
if (auxiliary->type == type) {
Expand Down

0 comments on commit 05470ad

Please sign in to comment.