[glib] gvariant: Fix the max unsigned 64-bit integer value



commit 070383ca36a32aee4635ad63f5365b9db245c83f
Author: Krzesimir Nowak <krzesimir kinvolk io>
Date:   Tue May 2 14:27:14 2017 +0200

    gvariant: Fix the max unsigned 64-bit integer value
    
    It should be 2^64-1, not just 2^64.
    
    Reviewed-by: Philip Withnall <philip tecnocode co uk>

 glib/gvarianttype.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glib/gvarianttype.h b/glib/gvarianttype.h
index b48b267..1f1532c 100644
--- a/glib/gvarianttype.h
+++ b/glib/gvarianttype.h
@@ -97,8 +97,9 @@ typedef struct _GVariantType GVariantType;
  * G_VARIANT_TYPE_UINT64:
  *
  * The type of an integer value that can range from 0
- * to 18446744073709551616.  That's a really big number, but a Rubik's
- * cube can have a bit more than twice as many possible positions.
+ * to 18446744073709551615 (inclusive).  That's a really big number,
+ * but a Rubik's cube can have a bit more than twice as many possible
+ * positions.
  **/
 #define G_VARIANT_TYPE_UINT64               ((const GVariantType *) "t")
 


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