allow fp! take denominator tokens
authoralfadur
Thu, 21 Mar 2019 01:23:05 +0300
changeset 14722 5e2c892b0222
parent 14721 89dd60565041
child 14723 29dbe9ce8b7d
allow fp! take denominator tokens
rust/fpnum/src/lib.rs
--- a/rust/fpnum/src/lib.rs	Wed Mar 06 12:13:29 2019 -0500
+++ b/rust/fpnum/src/lib.rs	Thu Mar 21 01:23:05 2019 +0300
@@ -295,7 +295,7 @@
 
 #[macro_export]
 macro_rules! fp {
-    ($n: literal / $d: literal) => {
+    ($n: literal / $d: tt) => {
         FPNum::new($n, $d)
     };
     ($n: literal) => {