Avoid union for step variable

This commit is contained in:
Tom Richards 2017-09-14 13:45:44 -04:00
parent d18bf51109
commit 2f68113e4a

View file

@ -19,7 +19,7 @@ class SQLite3::Statement < DB::Statement
end end
# exec # exec
step = nil step = uninitialized LibSQLite3::Code
loop do loop do
step = LibSQLite3::Code.new LibSQLite3.step(self) step = LibSQLite3::Code.new LibSQLite3.step(self)
break unless step == LibSQLite3::Code::ROW break unless step == LibSQLite3::Code::ROW