Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
jarca0123 committed Apr 20, 2024
1 parent d08bb0a commit c7d7fd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/avm2/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ impl<'gc> ArrayStorage<'gc> {

/// Convert the array to a dense representation if it meets the criteria.
fn maybe_convert_to_dense(&mut self) {
if let ArrayStorage::Sparse { length, .. } = self {
if *length < MIN_SPARSE_LENGTH {
if let ArrayStorage::Sparse { storage, length } = self {
if storage.is_empty() && *length == 0 {
*self = ArrayStorage::Dense {
storage: Vec::new(),
occupied_count: 0,
Expand Down

0 comments on commit c7d7fd0

Please sign in to comment.