Skip to content

Commit

Permalink
Update xsqlda.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Noriebalbinot authored Aug 20, 2024
1 parent fb76e7f commit 508bf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsfbclient-native/src/xsqlda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl XSqlDa {
/// Returns a mutable reference to a XSQLVAR
pub fn get_xsqlvar_mut(&mut self, col: usize) -> Option<&mut ibase::XSQLVAR> {
if col < self.len as usize {
let xsqlvar = unsafe { self.ptr.as_mut().sqlvar.get_unchecked_mut(col as usize) };
let xsqlvar = unsafe { self.ptr.as_mut().sqlvar.get_mut(col as usize).unwrap() };

Some(xsqlvar)
} else {
Expand Down

0 comments on commit 508bf55

Please sign in to comment.