Commit 4718ecd
committed
Fix another integer narrowing warning.
* buckets/http2_frame_buckets.c
(serf__bucket_http2_frame_create): Change the max_payload_size argument
from an apr_uint32_t to an apr_size_t, because that's how we store it
in our internal data structures. Move the size check to the beginning
of the function so that we can never use a payload size that's too large.
* protocols/http2_buckets.h
(serf__bucket_http2_frame_create): Update the prototype.
git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1927634 13f79535-47bb-0310-9956-ffa450edef681 parent a1556ca commit 4718ecd
2 files changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
637 | | - | |
| 636 | + | |
638 | 637 | | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
639 | 644 | | |
640 | 645 | | |
641 | 646 | | |
642 | 647 | | |
643 | 648 | | |
644 | 649 | | |
645 | 650 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | 651 | | |
650 | 652 | | |
651 | 653 | | |
| |||
980 | 982 | | |
981 | 983 | | |
982 | 984 | | |
983 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
0 commit comments