FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixes #8948. SassC - array size too big by enebo · Pull Request #8950 · jruby/jruby · GitHub

/ jruby Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import org.jruby.RubyFixnum;
import org.jruby.RubyFloat;
import org.jruby.RubyModule;
import org.jruby.RubyNumeric;
import org.jruby.RubySymbol;
import org.jruby.anno.JRubyClass;
import org.jruby.anno.JRubyMethod;
Expand All @@ -52,6 +51,7 @@
import static org.jruby.api.Convert.asSymbol;
import static org.jruby.api.Convert.toInt;
import static org.jruby.api.Convert.toLong;
import static org.jruby.api.Create.newArray;
import static org.jruby.api.Create.newEmptyString;
import static org.jruby.api.Error.argumentError;
import static org.jruby.api.Error.indexError;
Expand Down Expand Up @@ -1933,7 +1933,7 @@ public IRubyObject get_string(ThreadContext context, IRubyObject offArg, IRubyOb
@JRubyMethod(name = { "get_array_of_string" })
public IRubyObject get_array_of_string(ThreadContext context, IRubyObject rbOffset) {
final int POINTER_SIZE = (Platform.getPlatform().addressSize() / 8);
final var arr = Create.allocArray(context, (size - POINTER_SIZE) / POINTER_SIZE);
final RubyArray arr = newArray(context);

for (long off = getOffset(rbOffset); off <= size - POINTER_SIZE; off += POINTER_SIZE) {
final MemoryIO mem = getMemoryIO().getMemoryIO(off);
Expand Down
Loading

Back | FazBrowse Home | New Git URL