[rhythmbox] rhythmbox-client: use the right abs() function



commit 66cd40ee7eedd797ff7451f4e39a97b2c18c19c4
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Nov 3 22:18:17 2021 +1000

    rhythmbox-client: use the right abs() function
    
    clang 11 complained about this

 remote/dbus/rb-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/remote/dbus/rb-client.c b/remote/dbus/rb-client.c
index fe57eef82..f73b89597 100644
--- a/remote/dbus/rb-client.c
+++ b/remote/dbus/rb-client.c
@@ -857,7 +857,7 @@ interact_mpris_player_signal (GDBusProxy *proxy, char *sender, char *signal_name
                gint64 pos;
                char *str;
                g_variant_get (parameters, "(x)", &pos);
-               if (abs(pos - data->position) >= G_USEC_PER_SEC) {
+               if (llabs(pos - data->position) >= G_USEC_PER_SEC) {
                        str = rb_make_duration_string (pos, FALSE);
                        g_print (_("Seeked to %s"), str);
                        g_print ("\r\n");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]