summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-13 05:14:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-13 05:14:21 +0000
commitfab87736fd2b421f94196dee7bda4a745a1f20e9 (patch)
tree71264fead2b7661d573f65b9e6d40b4c5ebb62d3 /string.c
parent4514a6bee646262b62db7438cc149a7ff651adb4 (diff)
* trunk/configure.in (AC_CHECK_HEADERS): stdint.h is not needed to check.
* trunk/configure.in (rb_cv_type_uint32_t): unqouted. [ruby-dev:34030] * trunk/string.c (hash): use inttypes.h instead of stdint.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/string.c b/string.c
index e64d440b77..39a96ee848 100644
--- a/string.c
+++ b/string.c
@@ -25,8 +25,8 @@
#include <unistd.h>
#endif
-#if HAVE_STDINT_H
-#include <stdint.h>
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
#endif
VALUE rb_cString;
@@ -761,7 +761,7 @@ rb_enc_strlen_cr(const char *p, const char *e, rb_encoding *enc, int *cr)
#ifdef NONASCII_MASK
#define is_utf8_lead_byte(c) (((c)&0xC0) != 0x80)
-static inline const VALUE
+static inline VALUE
count_utf8_lead_bytes_with_word(const VALUE *s)
{
VALUE d = *s;
@@ -1807,7 +1807,7 @@ hash(const unsigned char * data, int len, unsigned int h)
#endif
h *= m;
h ^= h >> r;
- };
+ }
h *= m;
h ^= h >> 10;