summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-07-21 22:56:56 +0200
committerEike Rathke <erack@redhat.com>2015-07-29 09:29:56 +0000
commit6484b2fda3b4fa0059526e81cd1e26cca46cb705 (patch)
treeb065f09d3a69ee27ad57c1736e88e21d4c72f6b2
parent029fa6477bfed71881c3287799f5bdffd3285f92 (diff)
endian.h: avoid some Wconversion warnings
Change-Id: Ic77bd0dd6ac2355eaf3e11811fba7604c782d9d6 Reviewed-on: https://gerrit.libreoffice.org/17307 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--include/osl/endian.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osl/endian.h b/include/osl/endian.h
index 0819deebba41..530549308d6e 100644
--- a/include/osl/endian.h
+++ b/include/osl/endian.h
@@ -161,7 +161,7 @@ extern "C" {
#endif
#ifndef OSL_MAKEWORD
-# define OSL_MAKEWORD(bl, bh) ((sal_uInt16)((bl) & 0xFF) | (((sal_uInt16)(bh) & 0xFF) << 8))
+# define OSL_MAKEWORD(bl, bh) ((sal_uInt16)((sal_uInt16)((bl) & 0xFF) | (((sal_uInt16)(bh) & 0xFF) << 8)))
#endif
#ifndef OSL_LOBYTE
# define OSL_LOBYTE(w) ((sal_uInt8)((sal_uInt16)(w) & 0xFF))