Fix round up in DLE_N_REG()

parent 98176229
......@@ -82,7 +82,7 @@ DLE_TYPE_LIM
#define DLE_BAN_REG_NREGION 3
// roundup number of DLEs needed for x regions
#define DLE_N_REG(x) ((x + (DLE_REG_NREGION)) / DLE_REG_NREGION)
#define DLE_N_REG(x) ((x + (DLE_REG_NREGION - 1)) / DLE_REG_NREGION)
struct fellow_dle_reg {
// 4 - for sanity check
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment