Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Comparison problem
Forum Update on Monday, May 27th 2025

[SOLVED]Comparison problem

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.7k Views
  • 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 Offline
    H Offline
    House15
    wrote on 27 Nov 2011, 13:31 last edited by
    #1

    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
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on 27 Nov 2011, 13:39 last edited by
      #2

      Try rerun qmake by manual and rebuild all.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        House15
        wrote on 27 Nov 2011, 13:49 last edited by
        #3

        Tryed. Didn't help.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          House15
          wrote on 27 Nov 2011, 14:10 last edited by
          #4

          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
          0

          1/4

          27 Nov 2011, 13:31

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved