[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lpack question
- From: Luis Carvalho <carvalho@...>
- Date: Wed, 26 Mar 2008 14:12:20 -0400
> I used the wrong cut and paste here: there ought to be another line
> prior to the print lines:
> local mopt_unpack = string.unpack('l',block)
I think you want
local pos, mopt_unpack = string.unpack('i', block)
Most likely your long has 64 bits, which makes string.unpack return 1.
Cheers,
Luis.
--
A mathematician is a device for turning coffee into theorems.
-- P. Erdos
--
Luis Carvalho
Applied Math PhD Student
Brown University