COMPARESTR gives different results on different platforms

Report any Hollywood bugs here
Post Reply
peceha
Posts: 111
Joined: Tue Dec 13, 2016 9:39 am
Location: Poland

COMPARESTR gives different results on different platforms

Post by peceha » Tue Jan 16, 2018 12:21 pm

Code: Select all

Print (CompareStr("d","dupa",FALSE))
Wait(200)
Hi,
when run on PC: -1
when run on MorphOS 3.9, PowerMac: 0

Image

User avatar
airsoftsoftwair
Posts: 2626
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: COMPARESTR gives different results on different platform

Post by airsoftsoftwair » Sun Jan 21, 2018 4:58 pm

Confirmed. Will be fixed.

User avatar
airsoftsoftwair
Posts: 2626
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: COMPARESTR gives different results on different platform

Post by airsoftsoftwair » Sun Jan 28, 2018 5:32 pm

Code: Select all

- Fix [Amiga/Linux/Android]: CompareStr() always returned 0 in case one of the strings was a
  substring starting at offset 0 in the other string

Post Reply