s_task icon indicating copy to clipboard operation
s_task copied to clipboard

s_chan_declare 数据段大小问题?

Open heng30 opened this issue 4 years ago • 1 comments

源码 : #define s_chan_declare(name,TYPE,count)
s_chan_t name[1 + ((count)*sizeof(TYPE) + sizeof(s_chan_t) - 1) / sizeof(sizeof(s_chan_t))]

不懂为什么是除以sizeof(sizeof(s_chan_t)), 而不是除以sizeof(s_chan_t)

heng30 avatar Oct 04 '20 07:10 heng30

笔误,这么算多分配了。已提交修正 thank you!

xhawk18 avatar Oct 11 '20 14:10 xhawk18