diff options
author | Pasi Pentikainen <pasi.a.pentikainen@nokia.com> | 2011-09-06 14:40:40 (GMT) |
---|---|---|
committer | Pasi Pentikainen <pasi.a.pentikainen@nokia.com> | 2011-09-06 14:52:42 (GMT) |
commit | b1696fab84c411da025d255fef82f64c78bd92b5 (patch) | |
tree | 98c91163b803256cd61fe2a41c43b1a040a60cac | |
parent | 52df38bfba06358fbe8bf648e03eb0c95ceff114 (diff) | |
download | Qt-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.cpp | 2 |
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); } |