Page 1 of 1

COMPARESTR gives different results on different platforms

Posted: Tue Jan 16, 2018 12:21 pm
by peceha

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

Re: COMPARESTR gives different results on different platform

Posted: Sun Jan 21, 2018 4:58 pm
by airsoftsoftwair
Confirmed. Will be fixed.

Re: COMPARESTR gives different results on different platform

Posted: Sun Jan 28, 2018 5:32 pm
by airsoftsoftwair

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