projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0120ce9
)
Use wider set digests on 64-bit archs
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 2 Aug 2012 02:17:48 +0000
(22:17 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 2 Aug 2012 02:17:48 +0000
(22:17 -0400)
src/hb-set-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-set-private.hh
b/src/hb-set-private.hh
index
537319a
..
550b7f2
100644
(file)
--- a/
src/hb-set-private.hh
+++ b/
src/hb-set-private.hh
@@
-36,7
+36,7
@@
struct hb_set_digest_common_bits_t
{
ASSERT_POD ();
- typedef u
int16_
t mask_t;
+ typedef u
nsigned in
t mask_t;
inline void init (void) {
mask = ~0;
@@
-72,7
+72,7
@@
struct hb_set_digest_lowest_bits_t
{
ASSERT_POD ();
- typedef u
int32_t
mask_t;
+ typedef u
nsigned long
mask_t;
inline void init (void) {
mask = 0;
@@
-94,7
+94,7
@@
struct hb_set_digest_lowest_bits_t
private:
- mask_t mask_for (hb_codepoint_t g) const { return
1
<< (g & (sizeof (mask_t) * 8 - 1)); }
+ mask_t mask_for (hb_codepoint_t g) const { return
((mask_t) 1)
<< (g & (sizeof (mask_t) * 8 - 1)); }
mask_t mask;
};