Navigation Menu

Skip to content

Commit

Permalink
explicitly cast utf8_limits to const int32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaseger committed Apr 7, 2012
1 parent ae8690e commit 6769e49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions actions/rubinius/18/unpack_code.rl
Expand Up @@ -274,13 +274,13 @@ namespace rubinius {
}

static const int32_t utf8_limits[] = {
0x0, /* 1 */
0x80, /* 2 */
0x800, /* 3 */
0x10000, /* 4 */
0x200000, /* 5 */
0x4000000, /* 6 */
0x80000000, /* 7 */
(const int32_t) 0x0, /* 1 */
(const int32_t) 0x80, /* 2 */
(const int32_t) 0x800, /* 3 */
(const int32_t) 0x10000, /* 4 */
(const int32_t) 0x200000, /* 5 */
(const int32_t) 0x4000000, /* 6 */
(const int32_t) 0x80000000, /* 7 */
};

#define MALFORMED_UTF8_ERROR_SIZE 60
Expand Down
14 changes: 7 additions & 7 deletions actions/rubinius/19/unpack_code.rl
Expand Up @@ -274,13 +274,13 @@ namespace rubinius {
}

static const int32_t utf8_limits[] = {
0x0, /* 1 */
0x80, /* 2 */
0x800, /* 3 */
0x10000, /* 4 */
0x200000, /* 5 */
0x4000000, /* 6 */
0x80000000, /* 7 */
(const int32_t) 0x0, /* 1 */
(const int32_t) 0x80, /* 2 */
(const int32_t) 0x800, /* 3 */
(const int32_t) 0x10000, /* 4 */
(const int32_t) 0x200000, /* 5 */
(const int32_t) 0x4000000, /* 6 */
(const int32_t) 0x80000000, /* 7 */
};

#define MALFORMED_UTF8_ERROR_SIZE 60
Expand Down

0 comments on commit 6769e49

Please sign in to comment.