shithub: scc

Download patch

ref: 00ec91e8acfe327f70bd0ea829d1606ad031b526
parent: 2ee4c38b7e9809aefb5c8cb1f874444928a0b188
author: FRIGN <dev@frign.de>
date: Wed May 25 04:10:02 EDT 2016

[cc1] comparision -> comparison

--- a/cc1/fold.c
+++ b/cc1/fold.c
@@ -257,18 +257,18 @@
 	case OSUB: f = l - r;  break;
 	case OMUL: f = l * r;  break;
 	case ODIV: f = l / r;  break;
-	case OLT:  i = l < r;  goto comparision;
-	case OGT:  i = l > r;  goto comparision;
-	case OGE:  i = l >= r; goto comparision;
-	case OLE:  i = l <= r; goto comparision;
-	case OEQ:  i = l == r; goto comparision;
-	case ONE:  i = l != r; goto comparision;
+	case OLT:  i = l < r;  goto comparison;
+	case OGT:  i = l > r;  goto comparison;
+	case OGE:  i = l >= r; goto comparison;
+	case OLE:  i = l <= r; goto comparison;
+	case OEQ:  i = l == r; goto comparison;
+	case ONE:  i = l != r; goto comparison;
 	default:   return 0;
 	}
 	res->u.f = f;
 	return 1;
 
-comparision:
+comparison:
 	res->u.i = i;
 	return 1;
 }