diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-01-27 12:51:07 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-01-27 12:51:07 +0000 |
commit | e06ebb48179e71c123da69ad1be27cccc591be98 (patch) | |
tree | c400d096dc765604fceb3f98bc29954008f6670d /src/common | |
parent | Fix test addresses to use uintptr_t instead of u_int64_t. (diff) | |
download | breakpad-e06ebb48179e71c123da69ad1be27cccc591be98.tar.xz |
Change some functions in linux_libc_support.h to use intmax_t instead of int.
A=Benjamin Smedberg <benjamin@smedbergs.us>
R=ted
Review URL: https://bugzilla.mozilla.org/show_bug.cgi?id=716638
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@909 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/linux/linux_libc_support.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/linux/linux_libc_support.h b/src/common/linux/linux_libc_support.h index e08f27f7..2ef2dc11 100644 --- a/src/common/linux/linux_libc_support.h +++ b/src/common/linux/linux_libc_support.h @@ -105,7 +105,7 @@ my_strtoui(int* result, const char* s) { // Return the length of the given, non-negative integer when expressed in base // 10. static inline unsigned -my_int_len(int i) { +my_int_len(intmax_t i) { if (!i) return 1; @@ -125,7 +125,7 @@ my_int_len(int i) { // i: the non-negative integer to serialise. // i_len: the length of the integer in base 10 (see |my_int_len|). static inline void -my_itos(char* output, int i, unsigned i_len) { +my_itos(char* output, intmax_t i, unsigned i_len) { for (unsigned index = i_len; index; --index, i /= 10) output[index - 1] = '0' + (i % 10); } |