Skip to content

Commit

Permalink
fix build unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjipeng committed Jul 17, 2024
1 parent bc599f1 commit 36335f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion unittest/pod_vector.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

#include "test.h"
#include "src/include/data_vector.h"
#include "timeuse.h"
#define _DEBUG 1
#include "src/include/data_vector.h"

using namespace picasso;

Expand Down
4 changes: 2 additions & 2 deletions unittest/timeuse.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "stdlib.h"
#include "stdio.h"
#include "time.h"
#ifdef LINUX
#if defined(LINUX) || defined(UNIX)
#include "unistd.h"
#include "sys/time.h"
#endif
Expand All @@ -26,7 +26,7 @@ static inline suseconds_t get_time()
#else
struct timeval t;
gettimeofday(&t, 0);
suseconds_t t1 = t.tv_sec * 1000 + t.tv_usec/1000;
suseconds_t t1 = (suseconds_t)(t.tv_sec * 1000 + t.tv_usec/1000);
#endif
return t1;
}
Expand Down

0 comments on commit 36335f9

Please sign in to comment.