From 6cc48d391ad4496d9aeb17978ac5c049c6eb3203 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 12 Nov 2013 21:32:29 +0100 Subject: fix type. note that a real fix should get rid of all the macros like SVG_ZOOM_AND_PAN and replace it with enum... (bzr r12800) --- src/dom/svgimpl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dom/svgimpl.cpp') diff --git a/src/dom/svgimpl.cpp b/src/dom/svgimpl.cpp index 4372e1b87..0f420dc87 100644 --- a/src/dom/svgimpl.cpp +++ b/src/dom/svgimpl.cpp @@ -81,7 +81,7 @@ static double s2d(const DOMString &s) typedef struct { const char *name; - int type; + unsigned int type; } SVGTableEntry; @@ -119,7 +119,7 @@ SVGTableEntry interfaceTable[] = { "SVGUnitTypes", SVG_UNIT_TYPES }, { "SVGURIReference", SVG_URI_REFERENCE }, { "SVGViewSpec", SVG_VIEW_SPEC }, - { "SVGZoomAndPan", static_cast(SVG_ZOOM_AND_PAN)} + { "SVGZoomAndPan", SVG_ZOOM_AND_PAN } }; @@ -266,9 +266,9 @@ int svgInterfaceStrToEnum(const char *str) * Return the string corresponding to a given SVG element type enum * Return "unknown" if not found */ -const char *svgInterfaceEnumToStr(int type) +const char *svgInterfaceEnumToStr(unsigned int type) { - if (type < 1 || type > (int)SVG_ZOOM_AND_PAN) + if (type < 1 || type > SVG_ZOOM_AND_PAN) return "unknown"; SVGTableEntry *entry = interfaceTable; for (int i = 0 ; i < SVG_NR_INTERFACES ; i++) -- cgit v1.2.3