]> arthur.barton.de Git - ngircd.git/blobdiff - src/ngircd/irc-info.c
Fix "implicit conversion shortens 64-bit value" warning
[ngircd.git] / src / ngircd / irc-info.c
index f57a6a190d5c0a9e57b4f0ee315e349814cc609b..5a8555a0606f8095229feffffc48dda6efab0d92 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2008 Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2009 Alexander Barton (alex@barton.de)
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -440,7 +440,7 @@ t_diff(time_t *t, const time_t d)
        remain = diff * d;
        *t -= remain;
 
-       return diff;
+       return (unsigned int)diff;
 }