Skip to content
This repository was archived by the owner on Jan 9, 2019. It is now read-only.
This repository was archived by the owner on Jan 9, 2019. It is now read-only.

bitwise-arithmetic-shift-right doesn't handle bignum shift amounts #50

Description

@weinholt

The bitwise-arithmetic-shift-right procedure doesn't handle bignum shift amounts. The example below should return -1.

Vicare Scheme version 0.3d1, 64-bit
Revision devel/eb362bf709a6d7d0da3bcfdf4c126ea6898137c1
Build 2013-08-20

Copyright (c) 2006-2010 Abdulaziz Ghuloum and contributors
Copyright (c) 2011-2013 Marco Maggi

vicare> (bitwise-arithmetic-shift-right -1 (+ (greatest-fixnum) 1))
Unhandled exception
Condition components:

  1. &assertion
  2. &who: bitwise-arithmetic-shift-right
  3. &message: "expected fixnum as argument"
  4. &irritants: (1152921504606846976)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions