diff mbox

[08/13] libc/time.c: days_in_month() use char rather than int

Message ID 20170823072123.18769-9-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith Aug. 23, 2017, 7:21 a.m. UTC
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 libc/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libc/time.c b/libc/time.c
index 3411bdc0b580..6a5108691af1 100644
--- a/libc/time.c
+++ b/libc/time.c
@@ -16,7 +16,7 @@  static int is_leap_year(int year)
 
 static int days_in_month(int month, int year)
 {
-	static int month_days[] = {
+	static char month_days[] = {
 		31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
 	};