diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-13 00:40:43 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-18 12:32:18 +0100 |
commit | a208ece66416048cdc99235a569bd8c928a07394 (patch) | |
tree | e05fd7f828564bd370d21f897cfd2da7fa8f7488 /embedserv | |
parent | cf6b3bece7d46878302075329c72c7541c65bbd0 (diff) |
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I60bb778a88dd5619efd4858eb74d56d28616c777
Reviewed-on: https://gerrit.libreoffice.org/63520
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/inprocserv/dllentry.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embedserv/source/inprocserv/dllentry.cxx b/embedserv/source/inprocserv/dllentry.cxx index 963342c819f8..5c8c4f6bdd2d 100644 --- a/embedserv/source/inprocserv/dllentry.cxx +++ b/embedserv/source/inprocserv/dllentry.cxx @@ -52,7 +52,7 @@ namespace { char nSign = ( nValue / ( 1 << ( ( nLen - nInd - 1 ) * 4 ) ) ) % 16; if ( nSign >= 0 && nSign <= 9 ) pBuf[nInd] = nSign + L'0'; - else if ( nSign >= 10 && nSign <= 15 ) + else if (nSign >= 10) pBuf[nInd] = nSign - 10 + L'a'; nInd++; |