diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-25 14:39:51 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-25 14:40:06 -0700 |
commit | a8dc3fc4ad08c159243271c403848d23261aa699 (patch) | |
tree | 0b8d05479c2b4889386225085995099246213e73 | |
parent | 9aad7d02fedca1e265c5433060e57c8f9b6e3b01 (diff) |
libmisc: Fix an error message
-rw-r--r-- | libmisc/include/libmisc/vcall.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmisc/include/libmisc/vcall.h b/libmisc/include/libmisc/vcall.h index 9b54c06..31a8c7e 100644 --- a/libmisc/include/libmisc/vcall.h +++ b/libmisc/include/libmisc/vcall.h @@ -20,7 +20,7 @@ #define VCALL_SELF(obj_typ, iface_typ, iface_ptr) \ ({ \ static_assert(_Generic(iface_ptr, iface_typ *: 1, default: 0), \ - "typeof("#iface_ptr") != "#iface_typ); \ + "typeof("#iface_ptr") != "#iface_typ" *"); \ assert(iface_ptr); \ ((obj_typ*)(((void*)iface_ptr)-offsetof(obj_typ,iface_typ))); \ }) |