Ver Fonte

Reformat some expressions

bel há 9 anos atrás
pai
commit
4cf7d820fa
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      src/mod_lua.inl

+ 3 - 3
src/mod_lua.inl

@@ -328,11 +328,11 @@ lsp(struct mg_connection *conn,
 	for (i = 0; i < len; i++) {
 	for (i = 0; i < len; i++) {
 		if (p[i] == '\n')
 		if (p[i] == '\n')
 			lines++;
 			lines++;
-		if ((i + 1) < len && p[i] == '<' && p[i + 1] == '?') {
+		if (((i + 1) < len) && (p[i] == '<') && (p[i + 1] == '?')) {
 
 
 			/* <?= ?> means a variable is enclosed and its value should be
 			/* <?= ?> means a variable is enclosed and its value should be
 			 * printed */
 			 * printed */
-			is_var = ((i + 2) < len && p[i + 2] == '=');
+			is_var = (((i + 2) < len) && (p[i + 2] == '='));
 
 
 			if (is_var)
 			if (is_var)
 				j = i + 2;
 				j = i + 2;
@@ -342,7 +342,7 @@ lsp(struct mg_connection *conn,
 			while (j < len) {
 			while (j < len) {
 				if (p[j] == '\n')
 				if (p[j] == '\n')
 					lualines++;
 					lualines++;
-				if ((j + 1) < len && p[j] == '?' && p[j + 1] == '>') {
+				if (((j + 1) < len) && (p[j] == '?') && (p[j + 1] == '>')) {
 					mg_write(conn, p + pos, i - pos);
 					mg_write(conn, p + pos, i - pos);
 
 
 					mg_snprintf(conn,
 					mg_snprintf(conn,