[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - graphite/graphite2.narrowing.patch.1 graphite/UnpackedTarball_graphite.mk
Stephan Bergmann
sbergman at redhat.com
Tue Jun 4 10:07:15 PDT 2013
graphite/UnpackedTarball_graphite.mk | 1 +
graphite/graphite2.narrowing.patch.1 | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+)
New commits:
commit 85b44f98a810acd90274271fde41a7694389ad07
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Dec 10 10:48:50 2012 +0100
-Wc++11-narrowing
"non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned
long') to 'uint16' (aka 'unsigned short') in initializer list" etc. with Clang
-std=c++11
Change-Id: I15ff37bbc3d20c14db850678a9b9e295b900de85
Signed-off-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
diff --git a/graphite/UnpackedTarball_graphite.mk b/graphite/UnpackedTarball_graphite.mk
index 53b73b1..25638da 100644
--- a/graphite/UnpackedTarball_graphite.mk
+++ b/graphite/UnpackedTarball_graphite.mk
@@ -15,6 +15,7 @@ $(eval $(call gb_UnpackedTarball_set_tarball,graphite,$(GRAPHITE_TARBALL)))
$(eval $(call gb_UnpackedTarball_add_patches,graphite,\
graphite/graphite2.patch \
graphite/graphite2.issue1030.patch.1 \
+ graphite/graphite2.narrowing.patch.1 \
))
# vim: set noet sw=4 ts=4:
diff --git a/graphite/graphite2.narrowing.patch.1 b/graphite/graphite2.narrowing.patch.1
new file mode 100644
index 0000000..f19c8a3
--- /dev/null
+++ b/graphite/graphite2.narrowing.patch.1
@@ -0,0 +1,22 @@
+--- graphite/src/Code.cpp
++++ graphite/src/Code.cpp
+@@ -169,8 +169,8 @@ Machine::Code::Code(bool is_constraint,
+ bytecode_end,
+ pre_context,
+ rule_length,
+- silf.numClasses(),
+- face.glyphs().numAttrs(),
++ static_cast<uint16>(silf.numClasses()),
++ static_cast<uint16>(face.glyphs().numAttrs()),
+ face.numFeatures(),
+ {1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,255,
+@@ -178,7 +178,7 @@ Machine::Code::Code(bool is_constraint,
+ 1,1,1,1,1,1,0,0,
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,
+- 0,0,0,0,0,0,0, silf.numUser()}
++ 0,0,0,0,0,0,0, static_cast<byte>(silf.numUser())}
+ };
+
+ decoder dec(lims, *this);
More information about the Libreoffice-commits
mailing list