Project

General

Profile

Actions

Bug #3815

closed

dl2 - DL::Function TYPE_DOUBLE packing/unpacking problem

Added by nahi (Hiroshi Nakamura) over 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-09-10 trunk 29209) [x86_64-linux]
Backport:
[ruby-core:32281]

Description

=begin
assert(64bit)
assert(no_fiddle)

0% ruby -v
ruby 1.9.3dev (2010-09-10 trunk 29209) [x86_64-linux]
0% ruby test/runner.rb test/dl
Test run options: --seed 53947

Loaded suite test/runner
Started
.........................................................F.........FF.........................................
Finished in 0.183267 seconds.

  1. Failure:
    test_sin(DL::TestDL) [/home/nahi/svn/ruby/current/test/dl/test_dl2.rb:102]:
    <1.0> expected but was
    <1.38523885234213e-309>.

  2. Failure:
    test_sin(DL::TestFunc) [/home/nahi/svn/ruby/current/test/dl/test_func.rb:37]:
    Expected 1.0 - 1.38523885234213e-309 (1.0) to be < 0.0001.

  3. Failure:
    test_sinf(DL::TestFunc) [/home/nahi/svn/ruby/current/test/dl/test_func.rb:31]:
    Expected 1.0 - 0.0 (1.0) to be < 0.0001.

110 tests, 200 assertions, 3 failures, 0 errors, 0 skips

Test run options: --seed 53947
=end

Actions #1

Updated by naruse (Yui NARUSE) over 13 years ago

  • Status changed from Open to Rejected
Actions #2

Updated by nahi (Hiroshi Nakamura) over 13 years ago

  • Category changed from ext to test
  • Status changed from Rejected to Open
  • Priority changed from Normal to 3

=begin
Thank you! Passing a double value to C function does not work on x86_64, right?

I reopen this ticket since we'd better add some tweaks.
Document, adding warnings, avoid tests, etc.
=end

Actions #3

Updated by naruse (Yui NARUSE) over 13 years ago

=begin
Use fiddle; fiddle is added for this problem.
=end

Actions #4

Updated by shyouhei (Shyouhei Urabe) over 13 years ago

  • Status changed from Open to Rejected

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0