https://github.com/thepowersgang/mrustc/issues/109 From: Danny Milosavljevic Date: Fri, 3 Jan 2019 13:00:00 +0100 --- mrustc/src/expand/proc_macro.cpp.orig 2019-02-01 14:16:54.208486062 +0100 +++ mrustc/src/expand/proc_macro.cpp 2019-02-01 14:17:14.350925705 +0100 @@ -977,7 +977,7 @@ for(;;) { auto b = recv_u8(); - v |= static_cast(b) << ofs; + v |= static_cast(b & 0x7F) << ofs; if( (b & 0x80) == 0 ) break; ofs += 7; t type='hidden' name='id' value='3cf7219cac454b6c01d86bd3dc30fad4d7e626db'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-04-16tests: Gracefully skip zlib test when zlib is missing....* tests/zlib.scm: Use 'test-skip' instead of (exit 77) when (zlib-available?) returns false. Ludovic Courtès
2017-10-11zlib: Fix memory leak due to revealed ports not being GC'd....Fixes <https://bugs.gnu.org/28784>. This mostly reverts 81a0f1cdf12e7bcc34c1203f034a323fa8f52cf5, which introduced a regression: revealed ports are *never* GC'd (contrary to what Guile's manual suggests). In addition to the revert, 'close-procedure' now explicitly swallows EBADF errors when 'close-port' is called. * guix/zlib.scm (close-procedure): New procedure. (make-gzip-input-port)[gzfile]: Use 'fileno' instead of 'port->fdes'. Use 'close-procedure' instead of 'gzclose'. (make-gzip-output-port): Likewise. * tests/zlib.scm ("compression/decompression pipe"): Use 'port-closed?' to determine whether PARENT has been closed. Ludovic Courtès
2017-03-15zlib: Don't rely on EBADF being ignored by 'fport_close'....In 2.2, 'fport_close' no longer swallows EBADF and instead raises a 'system-error' for this. This commit adjusts for 2.2. * guix/zlib.scm (close-procedure): Remove. (make-gzip-input-port): Use 'port->fdes' instead of 'fileno'. Use 'gzclose' instead of 'close-procedure'. (make-gzip-output-port): Likewise. * tests/zlib.scm ("compression/decompression pipe"): Don't check whether PARENT is closed using 'port-closed?'. Instead, use 'seek' on the underlying FD and check for EBADF. Ludovic Courtès