X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=xml-tree.cpp;h=b33383e6dcd41e08542f8633c4fa62671a8e5b1b;hb=1ecd202ec601b601acca14ece6c9c3c9e494d68f;hp=d6b54e8d058d9575452c9dc05a75571bbaa7ff57;hpb=97d7dd2782da8997bf185469f3d6ef722aabe3a0;p=SXSI%2FXMLTree.git diff --git a/xml-tree.cpp b/xml-tree.cpp index d6b54e8..b33383e 100644 --- a/xml-tree.cpp +++ b/xml-tree.cpp @@ -399,9 +399,9 @@ int32_t xml_tree::text_id(xml_tree::node_t x) const return (int32_t) text_positions->rank1(x) - 1; } -const char* xml_tree::get_text(int32_t id) const +unsigned char* xml_tree::get_text(int32_t id) const { - const char * s = static_cast(text_collection->GetText(id)); + unsigned char * s = text_collection->GetText(id); return s + (s[0] == 1); }