Skip to content

Commit

Permalink
Use enum for constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 16, 2024
1 parent 3ee7c63 commit a9bb6b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/io/event/selector/array.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
#include <errno.h>
#include <assert.h>

const size_t IO_EVENT_ARRAY_MAXIMUM_COUNT = SIZE_MAX / sizeof(void*);
const size_t IO_EVENT_ARRAY_DEFAULT_COUNT = 128;
enum {
IO_EVENT_ARRAY_MAXIMUM_COUNT = SIZE_MAX / sizeof(void*),
IO_EVENT_ARRAY_DEFAULT_COUNT = 128
};

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

0 comments on commit a9bb6b9

Please sign in to comment.