Skip to content

Commit

Permalink
Ensure that these constants are size_t, even if size_t is somehow nar…
Browse files Browse the repository at this point in the history
…rower than int
  • Loading branch information
aaaaaa123456789 committed Jan 13, 2022
1 parent 4c5e2c4 commit b891a85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions header/enum.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PLUM_FILENAME (-(size_t) 1)
#define PLUM_BUFFER (-(size_t) 2)
#define PLUM_CALLBACK (-(size_t) 3)
#define PLUM_FILENAME ((size_t) -(size_t) 1)
#define PLUM_BUFFER ((size_t) -(size_t) 2)
#define PLUM_CALLBACK ((size_t) -(size_t) 3)

enum plum_flags {
/* color formats */
Expand Down

0 comments on commit b891a85

Please sign in to comment.