Skip to content

Commit

Permalink
Fix clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jul 17, 2015
1 parent 4e7ffbe commit 02e286e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/hwdrivers/src/rplidar/src/hal/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Event
}
}

unsigned long wait( unsigned long timeout = 0xFFFFFFFF )
int wait( unsigned long timeout = 0xFFFFFFFF )
{
#ifdef _WIN32
switch (WaitForSingleObject(_event, timeout==0xFFFFFFF?INFINITE:(DWORD)timeout))
Expand All @@ -112,7 +112,7 @@ class Event
}
return EVENT_OK;
#else
unsigned long ans = EVENT_OK;
int ans = EVENT_OK;
pthread_mutex_lock( &_cond_locker );

if ( !_is_signalled )
Expand Down

0 comments on commit 02e286e

Please sign in to comment.