david135 / mosh-scheme

Automatically exported from code.google.com/p/mosh-scheme
Other
0 stars 0 forks source link

(make-vector 1.0) should raise error #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by hige...@gmail.com on 4 Jun 2010 at 10:42

GoogleCodeExporter commented 9 years ago
VM_ASSERT is not sufficient in here. VM_ASSERT disappears in non-debug versions.

        CASE(MAKE_VECTOR)
        {
            const Object n = pop();
            VM_ASSERT(n.isFixnum());
            ac_ = Object::makeVector(n.toFixnum(), ac_);
            NEXT1;
        }

Original comment by oku...@gmail.com on 18 Jun 2010 at 8:18

GoogleCodeExporter commented 9 years ago
Fixed. thanks.

Original comment by hige...@gmail.com on 18 Jun 2010 at 11:21