summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-13 00:06:00 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-13 11:26:59 +0200
commitb8c1742c400ab79887cc068635227616cf528fe4 (patch)
treebb5c42106be51529c69ad7e98829f99ffee71181 /shell
parentd7aa34ee91a8b23ef6e2f544beeec1dca0d69af7 (diff)
warning C4267: conversion from 'size_t' to 'int'
Change-Id: I00e5e4f959c351004d8c1181c124cc6a1058b666
Diffstat (limited to 'shell')
-rw-r--r--shell/source/all/xml_parser.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/all/xml_parser.cxx b/shell/source/all/xml_parser.cxx
index 6c2daaa8a82f..24a3ce961701 100644
--- a/shell/source/all/xml_parser.cxx
+++ b/shell/source/all/xml_parser.cxx
@@ -177,7 +177,8 @@ void xml_parser::init()
void xml_parser::parse(const char* XmlData, size_t Length, bool IsFinal)
{
- if (XML_STATUS_ERROR == XML_Parse(xml_parser_, XmlData, Length, IsFinal))
+ if (XML_STATUS_ERROR ==
+ XML_Parse(xml_parser_, XmlData, static_cast<int>(Length), IsFinal))
{
throw xml_parser_exception(
(char*)XML_ErrorString(XML_GetErrorCode(xml_parser_)),