Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Win: utf-8 decoder bug when compiling with gcc

  • Loading branch information
piscisaureus committed Dec 1, 2011
1 parent ee49c7a commit eb6d754a0620fc8035d2a0cac39cee007e023a50
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/win/tty.c
@@ -1258,7 +1258,8 @@ static int uv_tty_write_bufs(uv_tty_t* handle, uv_buf_t bufs[], int bufcnt,
#ifdef _MSC_VER /* msvc */
if (_BitScanReverse(&first_zero_bit, not_c)) {
#else /* assume gcc */
if (first_zero_bit = __builtin_clzl(not_c), c != 0) {
if (c != 0) {
first_zero_bit = (sizeof(int) * 8) - 1 - __builtin_clz(not_c);
#endif
if (first_zero_bit == 7) {
/* Ascii - pass right through */

0 comments on commit eb6d754

Please sign in to comment.
You can’t perform that action at this time.