diff --git a/lib/flt/support.rb b/lib/flt/support.rb
index <HASH>..<HASH> 100644
--- a/lib/flt/support.rb
+++ b/lib/flt/support.rb
@@ -681,7 +681,7 @@ module Flt
             while i>=0
               digits[i] += 1
               if digits[i] == base
-                digits[i] == 0
+                digits[i] = 0
               else
                 break
               end
Fix bug in Reader#adjusted_digits: round up was incorrect.