pt icon indicating copy to clipboard operation
pt copied to clipboard

pt_queue pointer overflow may cause wrong item index

Open ivan7wl opened this issue 7 years ago • 0 comments

Happens when the limit of pointer's type is not multiple of queue size. For example: pointer type is unsigned byte, from 0 ~ 255 queue size is 100

wr:     255 -> 0, round over to 0
idx:    55  -> 0, will override item at 0

ivan7wl avatar Jun 10 '17 04:06 ivan7wl