| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ | |||
| 31 | 31 | * | |
| 32 | 32 | * Version number of the nghttp3 library release. | |
| 33 | 33 | */ | |
| 34 | - #define NGHTTP3_VERSION "1.15.0" | ||
| 34 | + #define NGHTTP3_VERSION "1.16.0" | ||
| 35 | 35 | ||
| 36 | 36 | /** | |
| 37 | 37 | * @macro | |
@@ -41,6 +41,6 @@ | |||
| 41 | 41 | * number, 8 bits for minor and 8 bits for patch. Version 1.2.3 | |
| 42 | 42 | * becomes 0x010203. | |
| 43 | 43 | */ | |
| 44 | - #define NGHTTP3_VERSION_NUM 0x010f00 | ||
| 44 | + #define NGHTTP3_VERSION_NUM 0x011000 | ||
| 45 | 45 | ||
| 46 | 46 | #endif /* !defined(NGHTTP3_VERSION_H) */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ | |||
| 31 | 31 | ||
| 32 | 32 | void nghttp3_balloc_init(nghttp3_balloc *balloc, size_t blklen, | |
| 33 | 33 | const nghttp3_mem *mem) { | |
| 34 | - assert((blklen & 0xfu) == 0); | ||
| 34 | + assert((blklen & 0xFU) == 0); | ||
| 35 | 35 | ||
| 36 | 36 | balloc->mem = mem; | |
| 37 | 37 | balloc->blklen = blklen; | |
@@ -67,7 +67,7 @@ int nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n) { | |||
| 67 | 67 | ||
| 68 | 68 | if (nghttp3_buf_left(&balloc->buf) < n) { | |
| 69 | 69 | p = nghttp3_mem_malloc(balloc->mem, | |
| 70 | - sizeof(nghttp3_memblock_hd) + 0x8u + balloc->blklen); | ||
| 70 | + sizeof(nghttp3_memblock_hd) + 0x8U + balloc->blklen); | ||
| 71 | 71 | if (p == NULL) { | |
| 72 | 72 | return NGHTTP3_ERR_NOMEM; | |
| 73 | 73 | } | |
@@ -77,15 +77,15 @@ int nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n) { | |||
| 77 | 77 | balloc->head = hd; | |
| 78 | 78 | nghttp3_buf_wrap_init( | |
| 79 | 79 | &balloc->buf, | |
| 80 | - (uint8_t *)(((uintptr_t)p + sizeof(nghttp3_memblock_hd) + 0xfu) & | ||
| 81 | - ~(uintptr_t)0xfu), | ||
| 80 | + (uint8_t *)(((uintptr_t)p + sizeof(nghttp3_memblock_hd) + 0xFU) & | ||
| 81 | + ~(uintptr_t)0xFU), | ||
| 82 | 82 | balloc->blklen); | |
| 83 | 83 | } | |
| 84 | 84 | ||
| 85 | - assert(((uintptr_t)balloc->buf.last & 0xfu) == 0); | ||
| 85 | + assert(((uintptr_t)balloc->buf.last & 0xFU) == 0); | ||
| 86 | 86 | ||
| 87 | 87 | *pbuf = balloc->buf.last; | |
| 88 | - balloc->buf.last += (n + 0xfu) & ~(uintptr_t)0xfu; | ||
| 88 | + balloc->buf.last += (n + 0xFU) & ~(size_t)0xFU; | ||
| 89 | 89 | ||
| 90 | 90 | return 0; | |
| 91 | 91 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,7 @@ nghttp3_callbacks_convert_to_latest(nghttp3_callbacks *dest, | |||
| 45 | 45 | return src; | |
| 46 | 46 | } | |
| 47 | 47 | ||
| 48 | - memset(dest, 0, sizeof(*dest)); | ||
| 48 | + *dest = (nghttp3_callbacks){0}; | ||
| 49 | 49 | ||
| 50 | 50 | callbacks_copy(dest, src, callbacks_version); | |
| 51 | 51 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments