Skip to content

Commit c00aaa4

Browse files
mjsaltusfacebook-github-bot
authored andcommitted
Fix StatusTypeEnum bug
Summary: `StatusType::ENUM_COUNT` is used to bound the valid enums but its not the last one... https://www.internalfb.com/code/fbsource/[b40ae6818e8b01d0e37ec0d35afe8f45269c73d1]/fbcode/proxygen/lib/http/StatusTypeEnum.cpp?lines=19-26 Differential Revision: D61672203 fbshipit-source-id: 5097fa47415f0081005c29d3ef2d65b85dc45b31
1 parent 0139656 commit c00aaa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proxygen/lib/http/StatusTypeEnum.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ namespace proxygen {
5555
x(manifest_missing_representation), x(manifest_with_0_bitrate), \
5656
x(manifest_with_no_tracks), x(manifest_with_wrong_track), \
5757
x(cache_lease_queue_hard_timeout), x(cache_purge), x(cache_error), \
58-
x(proxy_cache_fill_shed), x(ENUM_COUNT), x(takedown_direct_response)
58+
x(proxy_cache_fill_shed), x(takedown_direct_response), \
59+
/* ENUM_COUNT MUST BE THE FINAL ENUM */ x(ENUM_COUNT)
5960

6061
#define STATUS_TYPE_ENUM(statusType) statusType
6162

0 commit comments

Comments
 (0)