Re: [dev] cal -5 and -7

From: Martin Kühne <mysatyre_AT_gmail.com>
Date: Mon, 16 Jan 2017 09:31:22 +0100

// actually, merge me with '3', right away, too
case '5':
case '7':
  nmons = switch_var - '0'; // subtracting '0' is generally safe
  if(--month < 1) {
    month += 12;
    year--;
  }
  break;

cheers!
mar77i
Received on Mon Jan 16 2017 - 09:31:22 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 16 2017 - 09:36:13 CET