Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some extra warnings #3

Merged
merged 7 commits into from
Jan 26, 2024
Prev Previous commit
Next Next commit
Fix -Wsign-conversion warnings on ARM Mac
Signed-off-by: Laszlo Budai <laszlo.budai@outlook.com>
  • Loading branch information
lbudai committed Jun 17, 2022
commit 01de025fb8b5fa70eab16dd5ee260b0b53c29df2
4 changes: 2 additions & 2 deletions munit.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ psnip_clock_wall_get_time (struct PsnipClockTimespec* res) {
if (gettimeofday(&tv, NULL) != 0)
return -6;

res->seconds = tv.tv_sec;
res->nanoseconds = tv.tv_usec * 1000;
res->seconds = (psnip_uint64_t) tv.tv_sec;
res->nanoseconds = (psnip_uint64_t) (tv.tv_usec * 1000);
#else
return -2;
#endif
Expand Down