diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-12-04 06:57:51 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-12-04 06:57:51 -0800 |
commit | aa279b849e8a4c5fc4eb3429ac38f71f81704b2d (patch) | |
tree | 6f434fa3137d25cd437d10c876c2878e72c78464 /lib.h | |
parent | 4a8722ce9fcbb66abe2bd304e5a4bad03d842821 (diff) | |
download | txr-aa279b849e8a4c5fc4eb3429ac38f71f81704b2d.tar.gz txr-aa279b849e8a4c5fc4eb3429ac38f71f81704b2d.tar.bz2 txr-aa279b849e8a4c5fc4eb3429ac38f71f81704b2d.zip |
prof: deal with overflowing mem counters.
* eval.c (op_prof): Deal with the cases when alloc_bytes_t
value cannot be converted to a val in a single call to
unum.
* lib.h (SIZEOF_ALLOC_BYTES_T): New macro.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -485,8 +485,10 @@ extern val prog_string; #if HAVE_ULONGLONG_T typedef ulonglong_t alloc_bytes_t; +#define SIZEOF_ALLOC_BYTES_T SIZEOF_LONGLONG_T #else typedef unsigned long alloc_bytes_t; +#define SIZEOF_ALLOC_BYTES_T SIZEOF_LONG #endif extern alloc_bytes_t malloc_bytes; |