diff --git a/inc/class-wp-revisions-control.php b/inc/class-wp-revisions-control.php
index f528d269899bc9197b762f9c57171498981bfb20..a78bb40dd59bcd1f8559732ca64d0f9f4ad48c95 100644
--- a/inc/class-wp-revisions-control.php
+++ b/inc/class-wp-revisions-control.php
@@ -341,7 +341,7 @@ class WP_Revisions_Control {
 						'Limit this post to %1$s revisions. Leave this field blank for default behavior.',
 						'wp_revisions_control'
 					),
-					'<input type="text" name="' . esc_attr( $this->settings_section ) . '_qty" value="' . (int) $this->get_post_revisions_to_keep( $post->ID ) . '" id="' . esc_attr( $this->settings_section ) . '_qty" size="2" />'
+					'<input type="text" name="' . esc_attr( $this->settings_section ) . '_qty" value="' . esc_attr( $this->get_post_revisions_to_keep( $post->ID ) ) . '" id="' . esc_attr( $this->settings_section ) . '_qty" size="2" />'
 				);
 				?>