Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED]Comparison problem

    General and Desktop
    2
    4
    1544
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      House15 last edited by

      Hi to everyone, who read this.

      I have a situation, which shouldn't be a situation at all! Nevertheless, here it is:

      I have a quint16 _blockSize and tcp number of available bytes of tcp socket. Just like that:

      @
      _sok->bytesAvailable()
      @

      Well, all simple and nice there is a problem: they are not comparasing!
      My condition:

      @
      if(_sok->bytesAvailable()<_blockSize)
      {
      return;
      }
      else
      {
      ...
      }
      @

      was just ignored and program do not enter not in "if", not in "else". It's just take away.

      I know, what _blocksize and bytesavailable - are just 16 and 64 bit numbers, but i can't understand why comparasing don't go on?

      Thanks in advance.

      [EDIT: code formatting, please wrap in @-tags, Volker]

      1 Reply Last reply Reply Quote 0
      • Q
        qxoz last edited by

        Try rerun qmake by manual and rebuild all.

        1 Reply Last reply Reply Quote 0
        • H
          House15 last edited by

          Tryed. Didn't help.

          1 Reply Last reply Reply Quote 0
          • H
            House15 last edited by

            Yeap, i khew it's stupid issue,,,

            Thing is, it's just make "return" without enter in "if" block. Thanks for attentions.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post