Merge pull request #1287 from alisitsyn/bugfix/fix_idfgh6508

fix idfgh-6508: return type in tu_fifo_peek_n()