Nikolay Sivov : dwrite: Fix compiler warning regarding unsigned type of enum member.
Module: wine Branch: master Commit: 16aa4f1faa3757ff51a543ce8b0d9b0ad45a3a37 URL: http://source.winehq.org/git/wine.git/?a=commit;h=16aa4f1faa3757ff51a543ce8b... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Nov 4 18:50:57 2014 +0300 dwrite: Fix compiler warning regarding unsigned type of enum member. --- dlls/dwrite/analyzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c index 46cf3b5..82e9fa5 100644 --- a/dlls/dwrite/analyzer.c +++ b/dlls/dwrite/analyzer.c @@ -1223,7 +1223,7 @@ HRESULT create_numbersubstitution(DWRITE_NUMBER_SUBSTITUTION_METHOD method, cons *ret = NULL; - if (method < DWRITE_NUMBER_SUBSTITUTION_METHOD_FROM_CULTURE || method > DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL) + if ((UINT32)method > DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL) return E_INVALIDARG; if (method != DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE && !IsValidLocaleName(locale))
participants (1)
-
Alexandre Julliard