408d3fd
--- alexandria-book-collection-manager-0.7.4/lib/alexandria/preferences.rb.negative	2019-10-25 01:20:07.000000000 +0900
408d3fd
+++ alexandria-book-collection-manager-0.7.4/lib/alexandria/preferences.rb	2020-01-04 14:09:13.773911633 +0900
408d3fd
@@ -239,7 +239,7 @@ module Alexandria
408d3fd
         true
408d3fd
       elsif value == "false"    # bool
408d3fd
         false
408d3fd
-      elsif /^[0-9]+$/.match?(value) # int
408d3fd
+      elsif /^-?[0-9]+$/.match?(value) # int
408d3fd
         value.to_i
408d3fd
       elsif value =~ /^\[(.*)\]$/ # list (assume of type String)
408d3fd
         Regexp.last_match[1].split(",")