diff --git a/src/db/db/dbTextWriter.cc b/src/db/db/dbTextWriter.cc index 87148793a..8ac82ad39 100644 --- a/src/db/db/dbTextWriter.cc +++ b/src/db/db/dbTextWriter.cc @@ -149,7 +149,7 @@ TextWriter::write_props (const db::Layout & /*layout*/, size_t prop_id) const tl::Variant &name = p->first; const tl::Variant &value = p->second; - if (name.is_long () || name.is_ulong ()) { + if (name.can_convert_to_long ()) { *this << " {" << int (name.to_long ()) << " {" << value.to_string () << "}}" << endl_str (); } else if (name.is_a_string ()) { *this << " {{" << name.to_string () << "} {" << value.to_string () << "}}" << endl_str ();