summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-11-03 13:10:05 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-11-03 13:10:05 (GMT)
commit2850c445d0a092a29a4bb8fc7872bdf1b8e77013 (patch)
treecf3bfb4f09669276313f4d22df1d7de7bff331d3 /generic/tkTextDisp.c
parentf62809ae500979d25d14416315d34f395c61d2a1 (diff)
downloadtk-2850c445d0a092a29a4bb8fc7872bdf1b8e77013.zip
tk-2850c445d0a092a29a4bb8fc7872bdf1b8e77013.tar.gz
tk-2850c445d0a092a29a4bb8fc7872bdf1b8e77013.tar.bz2
Stop some complaints about signed/unsigned
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 618fb94..f57d63f 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextDisp.c,v 1.20 2003/10/31 19:14:27 vincentdarley Exp $
+ * RCS: @(#) $Id: tkTextDisp.c,v 1.21 2003/11/03 13:10:05 dkf Exp $
*/
#include "tkPort.h"
@@ -6862,7 +6862,7 @@ TextGetScrollInfoObj(interp, textPtr, objc, objv, dblPtr, intPtr)
arg2 = Tcl_GetStringFromObj(objv[2], &length);
c = arg2[0];
- if ((c == 'm') && (strncmp(arg2, "moveto", length) == 0)) {
+ if (c=='m' && strncmp(arg2, "moveto", (unsigned) length)==0) {
if (objc != 4) {
Tcl_WrongNumArgs(interp, 2, objv, "moveto fraction");
return TKTEXT_SCROLL_ERROR;
@@ -6871,7 +6871,7 @@ TextGetScrollInfoObj(interp, textPtr, objc, objv, dblPtr, intPtr)
return TKTEXT_SCROLL_ERROR;
}
return TKTEXT_SCROLL_MOVETO;
- } else if ((c == 's') && (strncmp(arg2, "scroll", length) == 0)) {
+ } else if (c=='s' && strncmp(arg2, "scroll", (unsigned) length)==0) {
CONST char *arg4;
size_t argLen;
@@ -6883,22 +6883,22 @@ TextGetScrollInfoObj(interp, textPtr, objc, objv, dblPtr, intPtr)
arg4 = Tcl_GetStringFromObj(objv[4], &length);
argLen = (size_t) length;
c = arg4[0];
- if ((c == 'p') && (length == 1)) {
+ if (c=='p' && length==1) {
Tcl_AppendResult(interp, "ambiguous argument \"", arg4,
"\": must be units, pages or pixels", (char *) NULL);
return TKTEXT_SCROLL_ERROR;
- } else if ((c == 'p') && (strncmp(arg4, "pages", argLen) == 0)) {
+ } else if (c=='p' && strncmp(arg4, "pages", argLen)==0) {
if (Tcl_GetIntFromObj(interp, objv[3], intPtr) != TCL_OK) {
return TKTEXT_SCROLL_ERROR;
}
return TKTEXT_SCROLL_PAGES;
- } else if ((c == 'p') && (strncmp(arg4, "pixels", argLen) == 0)) {
+ } else if (c=='p' && strncmp(arg4, "pixels", argLen)==0) {
if (Tk_GetPixelsFromObj(interp, textPtr->tkwin, objv[3],
intPtr) != TCL_OK) {
return TKTEXT_SCROLL_ERROR;
}
return TKTEXT_SCROLL_PIXELS;
- } else if ((c == 'u') && (strncmp(arg4, "units", argLen) == 0)) {
+ } else if (c=='u' && strncmp(arg4, "units", argLen)==0) {
if (Tcl_GetIntFromObj(interp, objv[3], intPtr) != TCL_OK) {
return TKTEXT_SCROLL_ERROR;
}