[libglnx/wip/smcv/warnings: 6/7] tests: Make signedness of timestamp agree
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libglnx/wip/smcv/warnings: 6/7] tests: Make signedness of timestamp agree
- Date: Sun, 24 Apr 2022 10:09:26 +0000 (UTC)
commit 7b26e39a1f687b1a209b73fecd76c083037d5c2f
Author: Simon McVittie <smcv collabora com>
Date: Sun Apr 24 11:07:38 2022 +0100
tests: Make signedness of timestamp agree
This silences a warning from gcc -Wsign-compare. g_get_monotonic_time()
returns a signed int64.
Signed-off-by: Simon McVittie <smcv collabora com>
tests/test-libglnx-xattrs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/test-libglnx-xattrs.c b/tests/test-libglnx-xattrs.c
index ad52b76..1de9acd 100644
--- a/tests/test-libglnx-xattrs.c
+++ b/tests/test-libglnx-xattrs.c
@@ -182,7 +182,7 @@ xattr_thread (gpointer data)
g_autoptr(GError) local_error = NULL;
GError **error = &local_error;
struct XattrWorker *worker = data;
- guint64 end_time = g_get_monotonic_time () + XATTR_THREAD_RUN_TIME_USECS;
+ gint64 end_time = g_get_monotonic_time () + XATTR_THREAD_RUN_TIME_USECS;
guint n_read = 0;
while (g_get_monotonic_time () < end_time)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]