projects
/
tedtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bd16a9
)
use uintptr_t instead of long in TYPEALIGN macros
author
teodor
<teodor>
Tue, 13 Apr 2010 17:15:30 +0000
(17:15 +0000)
committer
teodor
<teodor>
Tue, 13 Apr 2010 17:15:30 +0000
(17:15 +0000)
tools.h
patch
|
blob
|
history
diff --git
a/tools.h
b/tools.h
index
a7c9b09
..
7a4ffe4
100644
(file)
--- a/
tools.h
+++ b/
tools.h
@@
-52,7
+52,7
@@
double elapsedtime(struct timeval *begin);
#ifndef TYPEALIGN
#define TYPEALIGN(ALIGNVAL,LEN) \
- (((
long) (LEN) + ((ALIGNVAL) - 1)) & ~((long
) ((ALIGNVAL) - 1)))
+ (((
uintptr_t) (LEN) + ((ALIGNVAL) - 1)) & ~((uintptr_t
) ((ALIGNVAL) - 1)))
#define SHORTALIGN(LEN) TYPEALIGN(sizeof(int16_t), (LEN))
#define INTALIGN(LEN) TYPEALIGN(sizeof(int32_t), (LEN))