From 35e19ccbd3dbf02512eaf46b96783aba7fe9b720 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 14 Aug 2007 14:22:56 -0700 Subject: [PATCH] Add a cast to remove a warning. This patch adds a cast to get around the warning produced when the tf size call back (int *) is placed into the vpi structure (PLI_INT32 *). --- libveriuser/veriusertfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libveriuser/veriusertfs.c b/libveriuser/veriusertfs.c index 81d98f9c2..e35d314f5 100644 --- a/libveriuser/veriusertfs.c +++ b/libveriuser/veriusertfs.c @@ -109,7 +109,7 @@ void veriusertfs_register_table(p_tfcell vtable) tf_data.tfname = tf->tfname; tf_data.compiletf = compiletf; tf_data.calltf = calltf; - tf_data.sizetf = tf->sizetf; + tf_data.sizetf = (PLI_INT32 (*)(PLI_BYTE8 *))tf->sizetf; tf_data.user_data = (char *)data; if (pli_trace) {