diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0c3a3508c932..2525350e7f0e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-01-21 Tom Tromey + + * c-cppbuiltin.c (define__GNUC__): Correct assertion. + 2005-01-21 Kazu Hirata * tree-cfg.c: Fix comment typos. diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c index 75effe97e7bf..06904dbb5e52 100644 --- a/gcc/c-cppbuiltin.c +++ b/gcc/c-cppbuiltin.c @@ -275,7 +275,7 @@ define__GNUC__ (void) if (c_dialect_cxx ()) builtin_define_with_value_n ("__GNUG__", q, v - q); - gcc_assert (*v == '.' || ISDIGIT (v[1])); + gcc_assert (*v == '.' && ISDIGIT (v[1])); q = ++v; while (ISDIGIT (*v))