diff Plugins/Visualization/paranormal/pn/pnfloatoption.c @ 1591:02841f72b897 trunk

[svn] Cast variable to proper type before passing it into libxml2. Include necessary header to make this possible. Resolves 35 pointer signedness warnings on PPC.
author chainsaw
date Thu, 24 Aug 2006 11:40:00 -0700
parents 0c5fdcf3f947
children 752949e9aec4
line wrap: on
line diff
--- a/Plugins/Visualization/paranormal/pn/pnfloatoption.c	Thu Aug 24 11:11:30 2006 -0700
+++ b/Plugins/Visualization/paranormal/pn/pnfloatoption.c	Thu Aug 24 11:40:00 2006 -0700
@@ -109,9 +109,9 @@
 
   float_option = (PnFloatOption *) user_object;
 
-  value_node = xmlNewChild (node, NULL, "Value", NULL);
+  value_node = xmlNewChild (node, NULL, (xmlChar *) "Value", NULL);
   sprintf (str, "%f", float_option->value);
-  xmlNodeSetContent (value_node, str);
+  xmlNodeSetContent (value_node, (xmlChar *) str);
 
   if (parent_class->save_thyself)
     parent_class->save_thyself (user_object, node);