Permalink
Browse files

Using Malloc#export

  • Loading branch information...
1 parent 2370d20 commit dcf44c97a42e0609e7ae582a0b5c9fe417bf66ec @wedesoft committed Dec 30, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 Rakefile
  2. +1 −1 lib/hornetseye-narray/node.rb
View
@@ -6,7 +6,7 @@ require 'rake/packagetask'
require 'rbconfig'
PKG_NAME = 'hornetseye-narray'
-PKG_VERSION = '0.2.0'
+PKG_VERSION = '0.2.1'
RB_FILES = FileList[ 'lib/**/*.rb' ]
TC_FILES = FileList[ 'test/tc_*.rb' ]
TS_FILES = FileList[ 'test/ts_*.rb' ]
@@ -40,7 +40,7 @@ def to_narray
NArray.to_na to_a
else
data = memorise.memory
- NArray.to_na data.read( data.size ), target, *shape
+ NArray.to_na memorise.memory.export, target, *shape
end
end

0 comments on commit dcf44c9

Please sign in to comment.