From 92cd2cd6e7d010795088da5d02ef3c19686a15c1 Mon Sep 17 00:00:00 2001 From: Igor Dzuro Date: Fri, 27 Mar 2020 05:17:48 +0100 Subject: [PATCH] nm --- du3/program | Bin 17024 -> 17024 bytes du3/program.c | 12 +++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/du3/program b/du3/program index e021d851b6293c9a9af4525dae5bf7a4b24c49af..dbf6ab6258a065860cffc4bbbac4b008abb36d43 100755 GIT binary patch delta 538 zcmZo@Wo&3=+`z%enajce2DzIB86Pu>EV2A-RZ-`Y^-*;vl`hCe*9ZGVfW~_OHCX=r z|KFq2^@j(@u2M0NUfb6^3=A)XfWi=WoCPWD4P5}z<KJf==X7i8#VDWg6c-!Q8!V-=FKqlPc1t3KrGl7PMfY{xvwK^cP zkL~9ITKOUYCgJ4{Yh*e|;Uq}`EEppD6ymyKyX4?70~gA7n;4iM*0 zc2tySTrfFN(VcY%P&eb|jf&oL}j-q}Y9Z$vca69k6Q5#?2cQ&3S<4u}prUYrz<@SyAseGmv^|c%F$dVDe6r{fr@#D^2AY rS5Ka4x}E8R@Z=z~GR9?_Pnun4XWTe>p`AWw2q?6HAY}7RyXDLPF&faI diff --git a/du3/program.c b/du3/program.c index c6ffa0c..51482cc 100644 --- a/du3/program.c +++ b/du3/program.c @@ -33,13 +33,15 @@ int datevalid(int d, int m, int y) { return 0; } - if(m == 2) { - if(isleap(y)) { - if(d <= 29) { - return 1; + if (m == 2) { + if (isleap(y)) { + if (d > 29) { + return 0; } } else { - return 0; + if (d > 28) { + return 0; + } } }