Index: general-template.php
===================================================================
--- general-template.php	(revision 40253)
+++ general-template.php	(working copy)
@@ -1860,11 +1860,11 @@
  * @since 1.5.0
  *
  * @param int $num Number of day.
- * @return int Days since the start of the week.
+ * @return double Days since the start of the week.
  */
-function calendar_week_mod($num) {
+function calendar_week_mod( $num ) {
 	$base = 7;
-	return ($num - $base*floor($num/$base));
+	return ( $num - $base * floor( $num / $base ) );
 }
 
 /**
