summaryrefslogtreecommitdiff
path: root/lib/verify.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-11 23:28:09 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-11 23:28:09 +0000
commit7c97d643b9e44ffc992bc6fddb6c5a7f0824b7c7 (patch)
tree51197e1f901f47e19627fa66cd15276cf1c48af3 /lib/verify.h
parent6a406d5d8ba1d7fcd9436d42cd42f5fd69449105 (diff)
downloadcoreutils-7c97d643b9e44ffc992bc6fddb6c5a7f0824b7c7.tar.xz
(verify_expr): Use ((verify_type__ (R) *) 0), not
sizeof (verify_type__ (R)), to pacify C++ compilers.
Diffstat (limited to 'lib/verify.h')
-rw-r--r--lib/verify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/verify.h b/lib/verify.h
index 322851bb5..4461f4e47 100644
--- a/lib/verify.h
+++ b/lib/verify.h
@@ -52,6 +52,6 @@
This macro can be used in some contexts where verify cannot, and vice versa.
Return void. */
-# define verify_expr(R) ((void) sizeof (verify_type__ (R)))
+# define verify_expr(R) ((void) ((verify_type__ (R) *) 0))
#endif