瀏覽代碼

Update macros.rs

bug in PLIC macro
Román Cárdenas Rodríguez 1 年之前
父節點
當前提交
776aaac691
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/macros.rs

+ 1 - 1
src/macros.rs

@@ -146,7 +146,7 @@ macro_rules! plic_codegen {
 
             /// Returns the context proxy of a given PLIC context.
             #[inline]
-            pub fn ctx<C: ContextNumber>(context: C) -> $crate::plic::CTX<Self> {
+            pub fn ctx<C: $crate::plic::ContextNumber>(context: C) -> $crate::plic::CTX<Self> {
                 $crate::plic::PLIC::<PLIC>::ctx(context)
             }
         }