Results 1 to 2 of 2

Thread: Underline <

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Underline <

    I got error for the "<" in the code

    else if(gObj[aIndex].Money < Price)

    warning C4018: '<' : signed/unsigned mismatch

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Underline <

    that basically means that you are comparing a signed value to an unsigned value. You need to match the "signedness", ie make the unsigned variable signed or vice versa.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width