Andrew Talbot : sane.ds: Avoid signed-unsigned integer comparisons.
Alexandre Julliard
julliard at winehq.org
Tue Feb 26 13:48:14 CST 2013
Module: wine
Branch: master
Commit: 57b28bce0b485b080ab677a00b8ae77b32275176
URL: http://source.winehq.org/git/wine.git/?a=commit;h=57b28bce0b485b080ab677a00b8ae77b32275176
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Mon Feb 25 21:13:58 2013 +0000
sane.ds: Avoid signed-unsigned integer comparisons.
---
dlls/sane.ds/capability.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c
index 1381220..ee7435d 100644
--- a/dlls/sane.ds/capability.c
+++ b/dlls/sane.ds/capability.c
@@ -174,7 +174,7 @@ static TW_UINT16 TWAIN_GetSupportedCaps(pTW_CAPABILITY pCapability)
if (pCapability->hContainer)
{
UINT16 *u;
- int i;
+ TW_UINT32 i;
a = GlobalLock (pCapability->hContainer);
a->ItemType = TWTY_UINT16;
a->NumItems = sizeof(supported_caps) / sizeof(supported_caps[0]);
@@ -924,7 +924,7 @@ static TW_UINT16 SANE_ICAPSupportedSizes (pTW_CAPABILITY pCapability, TW_UINT16
#ifdef SONAME_LIBSANE
static TW_UINT32 possible_values[SUPPORTED_SIZE_COUNT];
- int i;
+ unsigned int i;
TW_UINT32 val;
TW_UINT16 default_size = get_default_paper_size(supported_sizes, SUPPORTED_SIZE_COUNT);
TW_UINT16 current_size = get_current_paper_size(supported_sizes, SUPPORTED_SIZE_COUNT);
More information about the wine-cvs
mailing list