2017-06-23 14:16 GMT+02:00 Mark H Weaver :
>
>
No need to apologize.
>
Cool, tanks :-)
>
> #vu8(118 0 0 0) represents 118.
>
> I'm not sure why it's a different number than you're expecting, but I
> can tell you that's the number in that bytevector.
>
I was expecting a different numbr of rows
'm not
> a great reader, probably.
>
> Something that is concerning me is that in the example a "rows" variable
> and a "columns" variable get declared as
>
> unsigned int rows;
> unsigned short columns;
>
> and then they get passed as
Catonano writes:
> 2017-06-22 18:20 GMT+02:00 Mark H Weaver :
>
>> Given this, and
>> the fact that you're passing the wrong width, makes me surprised that
>> this is working for you at all.
>
>
> Mark, thank you so much for your review. I appreciate that
>
> I apologize if my questions are naive
For now I renounced to extract numbers from my bytevectors
The culprit is: #vu8(232 3 0 0)
There are 27 lines in the sheet, so this bytevector should represent 27,
somehow.
The good bytevector is: #vu8(5 0)
In fact, the sheet has 5 columns
On another sheet in the same file, this is what happe
ng
>> > Also the manual is a great reference but not a great tutorial and I'm
>> not a great reader, probably.
>>
>> Something that is concerning me is that in the example a "rows" variable
>> and a "columns" variable get decl
at tutorial and I'm
> not a great reader, probably.
>
> Something that is concerning me is that in the example a "rows" variable
> and a "columns" variable get declared as
>
> unsigned int rows;
> unsigned short columns;
>
> and then they get pa
is concerning me is that in the example a "rows" variable
and a "columns" variable get declared as
unsigned int rows;
unsigned short columns;
and then they get passed as arguments to freexl_worksheet_dimensions as
&rows, &columns
like this
ret = freexl_worksheet_dimen
2017-06-22 18:20 GMT+02:00 Mark H Weaver :
> Catonano writes:
>
> > I can't extract correct values from unsigned-int's
> >
> > I can extract correct values from int, unsigned-short
> >
> > but NOT form an unsigned-int
> >
> > In that ca
Catonano writes:
> I can't extract correct values from unsigned-int's
>
> I can extract correct values from int, unsigned-short
>
> but NOT form an unsigned-int
>
> In that case the number that comes out is plainly wrong
>
> This is how I extra
The relevant code is here
https://gitlab.com/humanitiesNerd/guile-freexl/blob/master/freexl/common.scm
and the not working function is "freexl-worksheet-dimensions" on line 132
I can't extract correct values from unsigned-int's
I can extract correct values from int, unsigned-short
but NOT form an unsigned-int
In that case the number that comes out is plainly wrong
This is how I extract a number from an int (and it works)
(bytevector-uint-ref (pointer-&
11 matches
Mail list logo