1. Andy Serpa are you still around?

We found a slight bug in your nat_sort.e.
Post something on the forum if you want to know about it.

Don Cole
Our Governor cut his lip in a motercycle accident (dam fool).

new topic     » topic index » view message » categorize

2. Re: Andy Serpa are you still around?

don cole wrote:
> 
> 
> We found a slight bug in your nat_sort.e.
> Post something on the forum if you want to know about it.
> 

Oh yeah?

new topic     » goto parent     » topic index » view message » categorize

3. Re: Andy Serpa are you still around?

Andy Serpa wrote:
> 
> don cole wrote:
> > 
> > 
> > We found a slight bug in your nat_sort.e.
> > Post something on the forum if you want to know about it.
> > 
> 
> Oh yeah?

Check it out what do you think?
http://www.listfilter.com/EUforum/m5259.html

Don Cole

new topic     » goto parent     » topic index » view message » categorize

4. Re: Andy Serpa are you still around?

don cole wrote:
> 
> Andy Serpa wrote:
> > 
> > don cole wrote:
> > > 
> > > 
> > > We found a slight bug in your nat_sort.e.
> > > Post something on the forum if you want to know about it.
> > > 
> > 
> > Oh yeah?
> 
> Check it out what do you think?


Ahh yes, in the nat_compare_str() routine, x1num & x2num should be declared as
atoms.  Looks like I changed it in my personal version but never fixed it.  If
declared as integers than long strings of numbers can cause integer overflow...

new topic     » goto parent     » topic index » view message » categorize

5. Re: Andy Serpa are you still around?

Andy Serpa wrote:
> 
> don cole wrote:
> > 
> > Andy Serpa wrote:
> > > 
> > > don cole wrote:
> > > > 
> > > > 
> > > > We found a slight bug in your nat_sort.e.
> > > > Post something on the forum if you want to know about it.
> > > > 
> > > 
> > > Oh yeah?
> > 
> > Check it out what do you think?
> 
> 
> Ahh yes, in the nat_compare_str() routine, x1num & x2num should be declared
> as atoms.  Looks like I changed it in my personal version but never fixed it.
>  If declared as integers than long strings of numbers can cause integer
>  overflow...

Hi there Andy,


Could you also check to see that a long name such as:
  "123456789012345678901234567890.jpg"
still works ok when you're done fixing it?

When i want to check something like this with an unusual name
i just create a text file in Win Explorer with whatever name
i want to test with and then see how the program handles it
when it is run.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

6. Re: Andy Serpa are you still around?

Al Getz wrote:
> 
> Andy Serpa wrote:
> > 
> > don cole wrote:
> > > 
> > > Andy Serpa wrote:
> > > > 
> > > > don cole wrote:
> > > > > 
> > > > > 
> > > > > We found a slight bug in your nat_sort.e.
> > > > > Post something on the forum if you want to know about it.
> > > > > 
> > > > 
> > > > Oh yeah?
> > > 
> > > Check it out what do you think?
> > 
> > 
> > Ahh yes, in the nat_compare_str() routine, x1num & x2num should be declared
> > as atoms.  Looks like I changed it in my personal version but never fixed
> > it.
> >  If declared as integers than long strings of numbers can cause integer
> >  overflow...
> 
> Hi there Andy,
> 
> 
> Could you also check to see that a long name such as:
>   "123456789012345678901234567890.jpg"
> still works ok when you're done fixing it?
> 
> When i want to check something like this with an unusual name
> i just create a text file in Win Explorer with whatever name
> i want to test with and then see how the program handles it
> when it is run.
> 
> 
I only changed one line -- declared as atoms instead of integers.  So any long
stream of digits that will successfully convert to an atom should work fine,
meaning your filenames could be dozens of digits long.  It had nothing to do with
decimal points because it ignores them anyway.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Andy Serpa are you still around?

Andy Serpa wrote:
> 
> Al Getz wrote:
> > 
> > Andy Serpa wrote:
> > > 
> > > don cole wrote:
> > > > 
> > > > Andy Serpa wrote:
> > > > > 
> > > > > don cole wrote:
> > > > > > 
> > > > > > 
> > > > > > We found a slight bug in your nat_sort.e.
> > > > > > Post something on the forum if you want to know about it.
> > > > > > 
> > > > > 
> > > > > Oh yeah?
> > > > 
> > > > Check it out what do you think?
> > > 
> > > 
> > > Ahh yes, in the nat_compare_str() routine, x1num & x2num should be
> > > declared
> > > as atoms.  Looks like I changed it in my personal version but never fixed
> > > it.
> > >  If declared as integers than long strings of numbers can cause integer
> > >  overflow...
> > 
> > Hi there Andy,
> > 
> > 
> > Could you also check to see that a long name such as:
> >   "123456789012345678901234567890.jpg"
> > still works ok when you're done fixing it?
> > 
> > When i want to check something like this with an unusual name
> > i just create a text file in Win Explorer with whatever name
> > i want to test with and then see how the program handles it
> > when it is run.
> > 
> > 
> I only changed one line -- declared as atoms instead of integers.  So any long
> stream of digits that will successfully convert to an atom should work fine,
> meaning your filenames could be dozens of digits long.  It had nothing to do
> with decimal points because it ignores them anyway.


If you changed x1num, x2num from integers to atoms that would be 2 lines
wouldn't it? The integer line and the atom line.

Anyway thanks for fixing it Andy,

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu