aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-07-17 11:55:11 -0400
committerJorge Arellano Cid <jcid@dillo.org>2009-07-17 11:55:11 -0400
commitc19939e97903f0db0f83fa66e7f3789829e2f119 (patch)
tree3786d771e1cfa638bf7669090f7cc76424421053
parent26b1a102575efb7f812f4b0c16ccdfbffe0085b3 (diff)
Fix an implicit int cast error when int != int32_t
-rw-r--r--src/css.cc3
-rw-r--r--src/css.hh2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/css.cc b/src/css.cc
index a3df0b47..036db8d1 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -21,7 +21,8 @@ using namespace dw::core::style;
void CssProperty::print () {
fprintf (stderr, "%s - %d\n",
- CssParser::propertyNameString((CssPropertyName)name),value.intVal);
+ CssParser::propertyNameString((CssPropertyName)name),
+ (int)value.intVal);
}
CssPropertyList::~CssPropertyList () {
diff --git a/src/css.hh b/src/css.hh
index db8db282..1d7dc547 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -225,7 +225,7 @@ typedef enum {
} CssPropertyName;
typedef union {
- int intVal;
+ int32_t intVal;
char *strVal;
} CssPropertyValue;