shithub: scc

Download patch

ref: 33250e0f8b7583316d603c33a65b840afd0c7f45
parent: 09ae5802d52b84b988e9a997f76119e24f68d37d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Sep 20 18:34:36 EDT 2017

[as] Small cosmetic changes

--- a/as/expr.c
+++ b/as/expr.c
@@ -273,7 +273,6 @@
 		break;
 	default:
 		unexpected();
-		return NULL;
 	}
 
 	return np;
@@ -296,7 +295,8 @@
 			next();
 			binary(op, np, primary());
 			break;
-		default: return np;
+		default:
+			return np;
 		}
 	}
 }
@@ -315,7 +315,8 @@
 			next();
 			np = binary(op, np, mul());
 			break;
-		default: return np;
+		default:
+			return np;
 		}
 	}
 }
@@ -337,7 +338,8 @@
 			next();
 			np = binary(op, np, add());
 			break;
-		default: return np;
+		default:
+			return np;
 		}
 	}
 }
@@ -379,7 +381,8 @@
 			next();
 			np = binary(op, np, and());
 			break;
-		default: return np;
+		default:
+			return np;
 		}
 	}
 }