summaryrefslogtreecommitdiff
path: root/src/preproc/refer/token.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/preproc/refer/token.cc')
-rw-r--r--src/preproc/refer/token.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preproc/refer/token.cc b/src/preproc/refer/token.cc
index 1cf6890f..e9fac5df 100644
--- a/src/preproc/refer/token.cc
+++ b/src/preproc/refer/token.cc
@@ -1,5 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
+/* Copyright (C) 1989, 1990, 1991, 1992, 2001 Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
This file is part of groff.
@@ -181,7 +181,7 @@ const token_info *lookup_token(const char *start, const char *end)
for (;;) {
if (token_table[n].tok == 0)
break;
- if (strlen(token_table[n].tok) == end - start
+ if (strlen(token_table[n].tok) == size_t(end - start)
&& memcmp(token_table[n].tok, start, end - start) == 0)
return &(token_table[n].ti);
if (n == 0)