fixed minor bugs
This commit is contained in:
parent
c9a39fa64f
commit
e72c6db022
@ -254,7 +254,7 @@ int StdAwk::systime (Run& run, Return& ret, const Argument* args, size_t nargs,
|
||||
if (qse_gettime(&now) == -1)
|
||||
return ret.set (QSE_TYPE_MIN(long_t));
|
||||
else
|
||||
return ret.set ((long_t)now / QSE_MSEC_IN_SEC);
|
||||
return ret.set ((long_t)now / QSE_MSECS_PER_SEC);
|
||||
}
|
||||
|
||||
int StdAwk::strftime (Run& run, Return& ret, const Argument* args, size_t nargs,
|
||||
|
@ -9,8 +9,8 @@
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
||||
#if defined(QSE_USE_SYSCALL) && defined(HAVE_SYS_SYSCALL_H)
|
||||
#include <sys/syscall.h>
|
||||
|
Loading…
Reference in New Issue
Block a user