fixed some issues of C buffers and comma operator associativity