Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 15490)
+++ wp-includes/query.php	(working copy)
@@ -2736,7 +2739,7 @@
 				return NULL;
 			$term = $term[0];
 			$this->queried_object = $term;
-			$this->queried_object_id = $term->term_id;
+			$this->queried_object_id = (int) $term->term_id;
 		} elseif ( $this->is_posts_page ) {
 			$page_for_posts = get_option('page_for_posts');
 			$this->queried_object = & get_page( $page_for_posts );
