From a977b5563ab73b764c5b257d6ed1f182b5cd92ca Mon Sep 17 00:00:00 2001 From: Dustin Sallings Date: Sun, 15 Mar 2009 00:29:45 -0700 Subject: safe_strou?ll functions should operate on u?int64_t types. long long and unsigned long long are interchangeable in most places, but apparently not my 64-bit ubuntu 8.10 box. --- util.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index 0234a68..b5a043f 100644 --- a/util.h +++ b/util.h @@ -7,7 +7,5 @@ * * returns true if conversion succeeded. */ -bool safe_strtoull(const char *str, unsigned long long *out); -bool safe_strtoll(const char *str, long long *out); - - +bool safe_strtoull(const char *str, uint64_t *out); +bool safe_strtoll(const char *str, int64_t *out); -- cgit v1.2.1