Ticket #32900: Message_Queue_Test.diff

File Message_Queue_Test.diff, 1001 bytes (added by jh@…, 13 years ago)

changes u_int-casts to long-casts make the compiler happy

  • Message_Queue_Test.

    old new  
    118118  // correct.
    119119  // Also, to be sure there's not just 1 producer and 1 consumer pinging
    120120  // back and forth, make the producers randomly delay between blocks.
    121   ACE_OS::srand ((u_int)ACE_Thread::self ());
     121  ACE_OS::srand ((long)ACE_Thread::self ());
    122122  int multiple = ACE_OS::rand () % 10;
    123123  int delay_ms = (ACE_OS::rand () % 10) / 2;
    124124  // The delay usually causes the test to time out in the automated
     
    208208  // a calculated number of blocks then stop; the test checker will determine
    209209  // if the number consumed plus the number remaining is correct for the
    210210  // number produced.
    211   ACE_OS::srand ((u_int)ACE_Thread::self ());
     211  ACE_OS::srand ((long)ACE_Thread::self ());
    212212  int multiple = ACE_OS::rand () % 10;
    213213  int delay_ms = ACE_OS::rand () % 10;
    214214  // The delay usually causes the test to time out in the automated