commit d40e75a1f12f03a658fe8e89f84e672baf981b97
parent 3fe7aa67651c02c0d54098b6c32c1db012e56170
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 29 Jul 2012 09:39:52 +0200
Fixed bug checking repetition of const keyword
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/types.c b/types.c
@@ -169,7 +169,7 @@ void ctype(struct ctype *cp, unsigned char mod)
cp->c_reg = 1;
return;
case CONST:
- if (options.repeat && cp->c_reg)
+ if (options.repeat && cp->c_const)
goto duplicated;
cp->c_const = 1;
return;