mame/quine-relay · error

character code #{value} is out of 0..255 range

Error message

character code #{value} is out of 0..255 range

What it means

Error "character code #{value} is out of 0..255 range" thrown in mame/quine-relay.

Source

Thrown at vendor/ante.rb:109

    if instance_variable_get("@#{suit[0]}") != 0
      # puts "jumping to " << "Q#{suit[0]}" * suit.size
      if @labels[suit]
        @pc = @labels[suit]
      else
        exception("can't find " << "Q#{suit[0]}" * suit.size << " to go to")
      end
    end
  end

  def dump(card, char = nil)
    # puts "dump #{card.inspect} => "
    value = instance_variable_get("@#{card.suit}")
    if char
      if value.between?(0, 255)
        print value.chr
      else
        exception("character code #{value} is out of 0..255 range")
      end
    else
      print value
    end
  end

  # Fetch the rest of the assignment expression.
  def remaining(card)
    operands = [ card ]
    while card = @code[@pc]
      break if card.rank.nil? || card.rank.to_s =~ /[KQJ]/
      operands += [ card ]
      @pc += 1
    end
    ### ap "remaining: #{operands.inspect}"
    operands
  end

View on GitHub (pinned to c2aa5098d3)

When it happens

Trigger: Thrown at vendor/ante.rb:109 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of mame/quine-relay@c2aa5098d3 (2026-08-21). Data as JSON: /api/errors/daaeb50f426befcb. Report an issue: GitHub.