We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67e5594 commit e88ffc8Copy full SHA for e88ffc8
2 files changed
include/bfdev/array.h
@@ -24,8 +24,8 @@ BFDEV_BEGIN_DECLS
24
* is typically useful when buffering I/O or processing data.
25
*/
26
27
-#ifndef BFDEV_ARRAY_MSIZE
28
-# define BFDEV_ARRAY_MSIZE 32
+#ifndef BFDEV_ARRAY_MINSIZE
+# define BFDEV_ARRAY_MINSIZE 32
29
#endif
30
31
typedef struct bfdev_array bfdev_array_t;
src/array.c
@@ -15,7 +15,7 @@ array_reqsize(bfdev_array_t *array, unsigned long count)
15
unsigned long request;
16
bfdev_size_t size;
17
18
- request = bfdev_max(BFDEV_ARRAY_MSIZE, count);
+ request = bfdev_max(BFDEV_ARRAY_MINSIZE, count);
19
size = bfdev_pow2_roundup(request * array->cells);
20
21
return size;
0 commit comments