summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPasi Pentikainen <pasi.a.pentikainen@nokia.com>2011-09-06 14:40:40 (GMT)
committerPasi Pentikainen <pasi.a.pentikainen@nokia.com>2011-09-06 14:52:42 (GMT)
commitb1696fab84c411da025d255fef82f64c78bd92b5 (patch)
tree98c91163b803256cd61fe2a41c43b1a040a60cac
parent52df38bfba06358fbe8bf648e03eb0c95ceff114 (diff)
downloadQt-b1696fab84c411da025d255fef82f64c78bd92b5.zip
Qt-b1696fab84c411da025d255fef82f64c78bd92b5.tar.gz
Qt-b1696fab84c411da025d255fef82f64c78bd92b5.tar.bz2
Add a cast to moc cpp generator to remove armcc warnings
Task-number: QT-3869 Reviewed-by: Murray Read
-rw-r--r--src/tools/moc/generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp
index 72fda2d..b1bcab7 100644
--- a/src/tools/moc/generator.cpp
+++ b/src/tools/moc/generator.cpp
@@ -574,7 +574,7 @@ void Generator::generateProperties()
strreg(p.name),
strreg(p.type));
if (!(flags >> 24) && isQRealType(p.type))
- fprintf(out, "(QMetaType::QReal << 24) | ");
+ fprintf(out, "((uint)QMetaType::QReal << 24) | ");
fprintf(out, "0x%.8x,\n", flags);
}