** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
** Copyright (c) 2007, 2008 Chris Moore
+** Copyright (c) 2008 Gerco Ballintijn
+** Copyright (c) 2008 Carlos López
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
#include <cmath>
#include <cassert>
#include <algorithm>
+#include <cstdio>
#include <ctype.h>
#include <math.h>
if(ceil(time.value_)-time.value_<epsilon_())
time.value_=ceil(time.value_);
- int hour,minute;
+ int hour = 0, minute = 0;
if(!(format<=FORMAT_FRAMES))
{
hour=time/3600;time-=hour*3600;
started = true;
}
- if(format<=FORMAT_FULL || frame || !started)
+ if(format<=FORMAT_FULL || abs(frame) > epsilon_() || !started)
{
if (!(format<=FORMAT_NOSPACES) && started)
ret += " ";