• what to use in -qlanglvl

    From ankita.nit09@gmail.com@21:1/5 to All on Thu May 26 09:13:24 2016
    This code is going into indefinite loop; i am using -qlanglvl=extend
    int32_t i ;
    uint16_t start = 0;
    uint16_t end = 0;
    for ( i = start -1; i >=end; i--)
    { printf("%" PRIu32 "\t",i);
    printf("%" PRIu16 "\t",start);
    printf("%" PRIu16 "\t \n",end);
    printf("[########]%x %x %x\n ", i, start, end);
    if (i == -256)
    break;
    }

    i is storing values as UNIT_MAX not -1.

    which qlanglvl will be best for these conversion issues. What is noansifor?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From eresquigal@gmail.com@21:1/5 to ankita...@gmail.com on Tue Jul 5 15:18:03 2016
    On Thursday, May 26, 2016 at 5:13:27 PM UTC+1, ankita...@gmail.com wrote:
    This code is going into indefinite loop; i am using -qlanglvl=extend
    int32_t i ;
    uint16_t start = 0;
    uint16_t end = 0;
    for ( i = start -1; i >=end; i--)
    { printf("%" PRIu32 "\t",i);
    printf("%" PRIu16 "\t",start);
    printf("%" PRIu16 "\t \n",end);
    printf("[########]%x %x %x\n ", i, start, end);
    if (i == -256)
    break;
    }

    i is storing values as UNIT_MAX not -1.

    which qlanglvl will be best for these conversion issues. What is noansifor?

    It's not a lang level issue. The "problem" is here: "i = start -1", it's working correctly, just not the way you'd expect.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)