正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -678,7 +678,7 @@ u_int32_t __crc32_ieee(u_int32_t init, const u_int8_t* buf, size_t nb_buf) | @@ -678,7 +678,7 @@ u_int32_t __crc32_ieee(u_int32_t init, const u_int8_t* buf, size_t nb_buf) | ||
| 678 | 678 | ||
| 679 | u_int32_t crc = init ^ 0xFFFFFFFF; | 679 | u_int32_t crc = init ^ 0xFFFFFFFF; |
| 680 | 680 | ||
| 681 | - for (int i = 0; i < nb_buf; i++) { | 681 | + for (size_t i = 0; i < nb_buf; i++) { |
| 682 | crc = table[(crc ^ buf[i]) & 0xff] ^ (crc >> 8); | 682 | crc = table[(crc ^ buf[i]) & 0xff] ^ (crc >> 8); |
| 683 | } | 683 | } |
| 684 | 684 |
| @@ -129,7 +129,7 @@ void show_macro_features() | @@ -129,7 +129,7 @@ void show_macro_features() | ||
| 129 | #endif | 129 | #endif |
| 130 | 130 | ||
| 131 | #ifndef SRS_OSX | 131 | #ifndef SRS_OSX |
| 132 | - ss << ", glibc" << (int)__GLIBC__ << "." (int)__GLIBC_MINOR__; | 132 | + ss << ", glibc" << (int)__GLIBC__ << "." << (int)__GLIBC_MINOR__; |
| 133 | #endif | 133 | #endif |
| 134 | 134 | ||
| 135 | ss << ", conf:" << _srs_config->config() << ", limit:" << _srs_config->get_max_connections() | 135 | ss << ", conf:" << _srs_config->config() << ", limit:" << _srs_config->get_max_connections() |
-
请 注册 或 登录 后发表评论