another tweak to avoid a compiler warning ... let the compiler know that the

hour cannot exceed 23
This commit is contained in:
Richard Frith-Macdonald 2019-01-17 15:20:48 +00:00
parent b128196e57
commit cb2998641e

View file

@ -733,7 +733,7 @@ static NSMapTable *absolutes = 0;
{
char s = (anOffset >= 0) ? '+' : '-';
unsigned i = (anOffset >= 0) ? anOffset / 60 : -anOffset / 60;
unsigned h = i / 60;
unsigned h = (i / 60) % 24;
unsigned m = i % 60;
char buf[9];