[hackers] [scc] Increment size of TINT and TUINT || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 31 Aug 2015 21:21:24 +0200 (CEST)

commit 3125bcdb402be89f1847de69f5f491b832e31cd4
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Aug 31 21:19:26 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Aug 31 21:19:26 2015 +0200

    Increment size of TINT and TUINT
    
    These types must have a range that at least is equal
    to the range of the target integer. If the type is
    bigger enough, then it may allow do calculus also
    in bigger types than int.

diff --git a/inc/cc.h b/inc/cc.h
index b7f2f89..d85f0fd 100644
--- a/inc/cc.h
+++ b/inc/cc.h
_AT_@ -13,8 +13,8 @@ typedef unsigned bool;
 #define DBG(...)
 #endif
 
-#define TINT long
-#define TUINT unsigned long
+#define TINT long long
+#define TUINT unsigned long long
 #define TFLOAT double
 
 #define RANK_BOOL 0
Received on Mon Aug 31 2015 - 21:21:24 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 31 2015 - 21:24:15 CEST