Fix minus null minutes again.

This commit is contained in:
Michael Friedrich 2014-03-09 22:27:36 +01:00
parent ef73bb13d3
commit 0598930b09
1 changed files with 4 additions and 1 deletions

View File

@ -277,10 +277,13 @@
} else if (nm == 0 && ns == 0) { } else if (nm == 0 && ns == 0) {
signed = '-'; signed = '-';
sec = 1; sec = 1;
} else if (nm == 0) { } else if (nm == 0 && m[1][0] == '-') {
signed = '-'; signed = '-';
sec = ns; sec = ns;
sec++; sec++;
} else if (nm == 0 && m[1][0] != '-') {
sec = ns;
sec--;
} else { } else {
signed = ''; signed = '';
sec = nm * 60 + ns; sec = nm * 60 + ns;