shithub: scc

Download patch

ref: d40e75a1f12f03a658fe8e89f84e672baf981b97
parent: 3fe7aa67651c02c0d54098b6c32c1db012e56170
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Jul 29 05:39:52 EDT 2012

Fixed bug checking repetition of const keyword

--- a/types.c
+++ b/types.c
@@ -169,7 +169,7 @@
 		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;