|
Message-ID: <20121116114057.34884015@keeper.home.local> Date: Fri, 16 Nov 2012 11:40:57 +0400 From: Yuri Kozlov <yuray@...yakino.ru> To: musl@...ts.openwall.com Subject: src/stdio/__stdio_read.c Hello. size_t __stdio_read(FILE *f, unsigned char *buf, size_t len) { ssize_t cnt; ... cnt = syscall(SYS_readv, ...) if (cnt <= 0) { f->flags |= F_EOF ^ ((F_ERR^F_EOF) & cnt); f->rpos = f->rend = 0; return cnt; } ... } It not raise a problem when a signed value return as unsigned? -- Best Regards, Yuri Kozlov
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.