Skip to content

Commit

Permalink
Prefer static const over enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 17, 2024
1 parent eb1c57b commit ea9bb96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/io/event/selector/array.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#include <errno.h>
#include <assert.h>

enum {
IO_EVENT_ARRAY_MAXIMUM_COUNT = SIZE_MAX / sizeof(void*),
IO_EVENT_ARRAY_DEFAULT_COUNT = 128
};
// array.h

static const size_t IO_EVENT_ARRAY_MAXIMUM_COUNT = SIZE_MAX / sizeof(void*);
static const size_t IO_EVENT_ARRAY_DEFAULT_COUNT = 128;

struct IO_Event_Array {
// The array of pointers to elements:
Expand Down

0 comments on commit ea9bb96

Please sign in to comment.