]> andersk Git - libyaml.git/blobdiff - src/dumper.c
New upstream version 0.2.2
[libyaml.git] / src / dumper.c
index 29fb9c078483fc8870f508fdb5c63dd6a3d8df00..1fe940b674dafd6174d086a1994568461b43f8ba 100644 (file)
@@ -131,7 +131,7 @@ yaml_emitter_dump(yaml_emitter_t *emitter, yaml_document_t *document)
 
     assert(emitter->opened);    /* Emitter should be opened. */
 
-    emitter->anchors = yaml_malloc(sizeof(*(emitter->anchors))
+    emitter->anchors = (yaml_anchors_t*)yaml_malloc(sizeof(*(emitter->anchors))
             * (document->nodes.top - document->nodes.start));
     if (!emitter->anchors) goto error;
     memset(emitter->anchors, 0, sizeof(*(emitter->anchors))
This page took 0.228286 seconds and 4 git commands to generate.