lex.c (warn_about_normalization): Cast field width to int to avoid warning.

* lex.c (warn_about_normalization): Cast field width to int to
	avoid warning.

From-SVN: r97126
This commit is contained in:
Andreas Jaeger 2005-03-28 08:55:47 +02:00 committed by Andreas Jaeger
parent 885f2199f3
commit cbada204b4
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-03-28 Andreas Jaeger <aj@suse.de>
* lex.c (warn_about_normalization): Cast field width to int to
avoid warning.
2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
* configure.ac: Consistently use solaris2.1[0-9]* instead of

View File

@ -1,5 +1,5 @@
/* CPP Library - lexical analysis.
Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Contributed by Per Bothner, 1994-95.
Based on CCCP program by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987
@ -445,10 +445,10 @@ warn_about_normalization (cpp_reader *pfile,
sz = cpp_spell_token (pfile, token, buf, false) - buf;
if (NORMALIZE_STATE_RESULT (s) == normalized_C)
cpp_error_with_line (pfile, CPP_DL_WARNING, token->src_loc, 0,
"`%.*s' is not in NFKC", sz, buf);
"`%.*s' is not in NFKC", (int) sz, buf);
else
cpp_error_with_line (pfile, CPP_DL_WARNING, token->src_loc, 0,
"`%.*s' is not in NFC", sz, buf);
"`%.*s' is not in NFC", (int) sz, buf);
}
}