From 5f58afe75dea5acf79a22666beb897c024354bd0 Mon Sep 17 00:00:00 2001
From: Tuomas Nurmi <tuomas@norsumanageri.org>
Date: Mon, 8 Jul 2024 16:35:56 +0300
Subject: [PATCH 08/10] Use c/c++ library-defined ULLONG_MAX instead of manual
 calculation

---
 src/EpisodeAction.cpp | 2 +-
 src/JsonCreator.cpp   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/EpisodeAction.cpp b/src/EpisodeAction.cpp
index 59aa96b..e7d595d 100644
--- a/src/EpisodeAction.cpp
+++ b/src/EpisodeAction.cpp
@@ -26,7 +26,7 @@
 
 using namespace mygpo;
 
-static qulonglong c_maxlonglong = (2^64)-1;
+static qulonglong c_maxlonglong = ULLONG_MAX;
 
 EpisodeActionPrivate::EpisodeActionPrivate( EpisodeAction* qq, const QVariant& variant, QObject* parent ) : QObject( parent ), q( qq )
 {
diff --git a/src/JsonCreator.cpp b/src/JsonCreator.cpp
index 0c0a5ec..f50540e 100644
--- a/src/JsonCreator.cpp
+++ b/src/JsonCreator.cpp
@@ -32,7 +32,7 @@
 
 using namespace mygpo;
 
-static qulonglong c_maxlonglong = (2^64)-1;
+static qulonglong c_maxlonglong = ULLONG_MAX;
 
 QByteArray JsonCreator::addRemoveSubsToJSON( const QList< QUrl >& add, const QList< QUrl >& remove )
 {
-- 
2.47.0

