summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2018-12-28 12:13:24 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-29 07:14:35 +0100
commit5bdffc57b15be047dc19ff300957498465d004c5 (patch)
treeea1165a8d7a6bf6b61d4836b1b4988a89b595df8 /cppu
parent2086b781056fe8885ba8caaf27975ef46a6a814b (diff)
typelib: Fix incorrect parameter type to std::min() on m68k
Change-Id: Id674d19d38ebe634707f5a480e596efe8c83cc6a Reviewed-on: https://gerrit.libreoffice.org/65684 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/typelib/typelib.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 53dd020c97c6..9b288fabfd22 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1663,7 +1663,7 @@ extern "C" sal_Int32 typelib_typedescription_getAlignedUnoSize(
#ifdef __m68k__
// Anything that is at least 16 bits wide is aligned on a 16-bit
// boundary on the m68k default abi
- sal_Int32 nMaxAlign = std::min(rMaxIntegralTypeSize, 2);
+ sal_Int32 nMaxAlign = std::min(rMaxIntegralTypeSize, sal_Int32( 2 ));
nStructSize = (nStructSize + nMaxAlign -1) / nMaxAlign * nMaxAlign;
#else
// Example: A { double; int; } structure has a size of 16 instead of 10. The