Merge commit '63464a8959d90bd92c4998a80992c416b85c2057'

This commit is contained in:
px4dev 2013-01-06 01:55:00 -08:00
commit 18385c2d97
1 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@
*/
#include <string.h>
#include <stdlib.h>
#include "mavlink_log.h"
@ -51,7 +52,7 @@ void mavlink_logbuffer_init(struct mavlink_logbuffer *lb, int size) {
}
int mavlink_logbuffer_is_full(struct mavlink_logbuffer *lb) {
return lb->count == lb->size;
return lb->count == (int)lb->size;
}
int mavlink_logbuffer_is_empty(struct mavlink_logbuffer *lb) {
@ -77,4 +78,4 @@ int mavlink_logbuffer_read(struct mavlink_logbuffer *lb, struct mavlink_logmessa
} else {
return 1;
}
}
}