ref: 6587f1de894c86b4655c3da0802635caf9f07eaf
parent: f83826bc3b45e7f8d946f82db31b92742620a51e
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Sat Jul 13 09:40:08 EDT 2013
Avoid using a long-long literal for OP_INT64_MAX. The LL suffix isn't C89, so it may not work everywhere.
--- a/src/internal.h
+++ b/src/internal.h
@@ -92,7 +92,7 @@
# define OP_ALWAYS_TRUE(_cond) ((void)(_cond))
# endif
-# define OP_INT64_MAX ((ogg_int64_t)0x7FFFFFFFFFFFFFFFLL)
+# define OP_INT64_MAX (2*(((ogg_int64_t)1<<62)-1)|1)
# define OP_INT64_MIN (-OP_INT64_MAX-1)
# define OP_MIN(_a,_b) ((_a)<(_b)?(_a):(_b))