aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-node.c')
-rw-r--r--lib/ephy-node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ephy-node.c b/lib/ephy-node.c
index 7da180d19..39c72f647 100644
--- a/lib/ephy-node.c
+++ b/lib/ephy-node.c
@@ -689,7 +689,7 @@ write_parent (guint id,
if (data->ret < 0) return;
data->ret = xmlTextWriterWriteFormatAttribute
- (writer, (const xmlChar *)"id", "%ld", node_info->node->id);
+ (writer, (const xmlChar *)"id", "%d", node_info->node->id);
if (data->ret < 0) return;
data->ret = xmlTextWriterEndElement (writer); /* parent */
@@ -713,7 +713,7 @@ ephy_node_write_to_xml(EphyNode *node,
if (ret < 0) goto out;
/* write node id */
- ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"id", "%ld", node->id);
+ ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"id", "%d", node->id);
if (ret < 0) goto out;
/* write node properties */