Explorar el Código

Deps: Fix a clang-analyzer issue in the libc time handling

Lukas M hace 5 años
padre
commit
9a07e2162e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      deps/libc_time.c

+ 2 - 1
deps/libc_time.c

@@ -114,10 +114,11 @@ long long __year_to_secs(long long year, int *is_leap)
         }
 	cycles = (int)((year-100) / 400);
 	rem = (int)((year-100) % 400);
+	/* Comparison is always false because rem >= 0.
 	if (rem < 0) {
 		cycles--;
 		rem += 400;
-	}
+	} */
 	if (!rem) {
 		*is_leap = 1;
 		centuries = 0;