summaryrefslogtreecommitdiff
path: root/development/mrustc/mrustc-0.8.0-fix-variable-length-integer-receiving.patch
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2019-07-14 09:49:04 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-07-20 16:20:35 +0700
commit900d91cdba58124f0beba199b12fe8ddbfc070f8 (patch)
treeacfafb123cded3136ba2ef1448f85cb14a1d712a /development/mrustc/mrustc-0.8.0-fix-variable-length-integer-receiving.patch
parent69862cca3b38d517e9f927f0c46aa0355ba1e7f9 (diff)
downloadslackbuilds-900d91cdba58124f0beba199b12fe8ddbfc070f8.tar.gz
development/mrustc: Updated for version 0.8.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/mrustc/mrustc-0.8.0-fix-variable-length-integer-receiving.patch')
-rw-r--r--development/mrustc/mrustc-0.8.0-fix-variable-length-integer-receiving.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/development/mrustc/mrustc-0.8.0-fix-variable-length-integer-receiving.patch b/development/mrustc/mrustc-0.8.0-fix-variable-length-integer-receiving.patch
new file mode 100644
index 0000000000..9e76653a07
--- /dev/null
+++ b/development/mrustc/mrustc-0.8.0-fix-variable-length-integer-receiving.patch
@@ -0,0 +1,15 @@
+https://github.com/thepowersgang/mrustc/issues/109
+From: Danny Milosavljevic <dannym@scratchpost.org>
+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<uint64_t>(b) << ofs;
++ v |= static_cast<uint64_t>(b & 0x7F) << ofs;
+ if( (b & 0x80) == 0 )
+ break;
+ ofs += 7;