X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Freadwrite.c;h=5b318524619d53180055f8aafbc489f9292827e5;hb=6e5be9a78c42a8ddfbdfba29c4df306a73bffe3c;hp=39a7353ee393635d0e765e429bf76a2dccf91f9e;hpb=d3769faedef9c27e85a9f1b7b75635209c55450a;p=plomrogue diff --git a/src/readwrite.c b/src/readwrite.c index 39a7353..5b31852 100644 --- a/src/readwrite.c +++ b/src/readwrite.c @@ -10,11 +10,11 @@ * failure, return 1, else 0. (As of of now, all extern read/write functions * build on top of these.) * - * Only use multiples of 8 greater or equal 32 for "size". Originally a bit - * number check prefaced the code of both functions. It was removed as redundant - * due to all possible "size" values being hardcoded into the library (i.e. in - * all extern functions calling / wrapping around either function). If this ever - * changes, (re-)insert: + * Only use multiples of 8 greater or equal 32 for "size", so that storage + * inside uint32_t is possible. Originally a bit number check prefaced the code + * of both functions. It was removed as redundant due to all possible "size" + * values being hardcoded into the library (i.e. in all extern functions calling + * / wrapping around either function). If this ever changes, (re-)insert: * * if (0 == size || size > 32 || 0 != size % 8) * {