Bug in /= operator

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Bug in /= operator

Post by Enrico Maria Giordano »

This is the sample:

Code: Select all | Expand

#include "Fwce.ch"


FUNCTION MAIN()

    LOCAL nVal1 := 2.000
    LOCAL nVal2 := 10

    MSGINFO( nVal1 /= nVal2 )

    RETURN NIL


It terminates with an error when operator /= is executed.

EMG
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Enrico,

This is a workaround:

Code: Select all | Expand

#include "Fwce.ch" 

FUNCTION MAIN()

    LOCAL nVal1 := 2.000
    LOCAL nVal2 := 10
    local nVal3 := nVal1 / nVal2

    MSGINFO( nVal3 )

    RETURN NIL

Anyhow we are going to check where the error comes from
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Post by Enrico Maria Giordano »

Antonio Linares wrote:Enrico,

This is a workaround:

Code: Select all | Expand

#include "Fwce.ch" 

FUNCTION MAIN()

    LOCAL nVal1 := 2.000
    LOCAL nVal2 := 10
    local nVal3 := nVal1 / nVal2

    MSGINFO( nVal3 )

    RETURN NIL


Yes, I did already know it. :)

Antonio Linares wrote:Anyhow we are going to check where the error comes from


Thank you!

EMG
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Enrico,

It looks as a bug in the Harbour build used for Pocket PC, as this sample with no FWPPC code in it also fails:

nVal1 /= nVal2
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Post by Enrico Maria Giordano »

Thank you. I'm going to report it to the Harbour developers list.

EMG
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Enrico,

Wait, its ok in the current Harbour version, so it looks as the bug is just contained in the build used for Pocket PC

We may upgrade soon Harbour for Pocket PC to the current Harbour build
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Post by Enrico Maria Giordano »

Yes, you are right.

Thank you.

EMG
Post Reply