Make type abbreviations consistent: ssize_t is zd everywhere

This commit is contained in:
David Goldblatt
2017-03-06 11:40:29 -08:00
committed by David Goldblatt
parent 84326c566a
commit 424e3428b1
2 changed files with 6 additions and 6 deletions

View File

@@ -41,14 +41,14 @@
#endif
#define ZU(z) ((size_t)z)
#define ZI(z) ((ssize_t)z)
#define ZD(z) ((ssize_t)z)
#define QU(q) ((uint64_t)q)
#define QI(q) ((int64_t)q)
#define QD(q) ((int64_t)q)
#define KZU(z) ZU(z##ULL)
#define KZI(z) ZI(z##LL)
#define KZD(z) ZD(z##LL)
#define KQU(q) QU(q##ULL)
#define KQI(q) QI(q##LL)
#define KQD(q) QI(q##LL)
#ifndef __DECONST
# define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))