diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index b78331ee405..db602d0de16 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -1554,7 +1554,7 @@ plugins required to work with sni_routing. api_timer = Thread::get_hrtime(); } - hook->invoke(TS_EVENT_HTTP_READ_REQUEST_HDR + cur_hook_id, this); + hook->invoke(TS_EVENT_HTTP_READ_REQUEST_HDR + static_cast(cur_hook_id), this); if (api_timer > 0) { // true if the hook did not call TxnReenable() this->milestone_update_api_time(); api_timer = -Thread::get_hrtime(); // set in order to track non-active callout duration diff --git a/src/traffic_server/InkAPITest.cc b/src/traffic_server/InkAPITest.cc index 86497b6de4f..57093c06ce0 100644 --- a/src/traffic_server/InkAPITest.cc +++ b/src/traffic_server/InkAPITest.cc @@ -6551,7 +6551,7 @@ REGRESSION_TEST(SDK_API_TSMgmtGet)(RegressionTest *test, int /* atype ATS_UNUSED #define PRINT_DIFF(_x) \ { \ - if (_x - ORIG_##_x != 0) { \ + if (static_cast(_x) - static_cast(ORIG_##_x) != 0) { \ test_passed = false; \ SDK_RPRINT(test, "##_x", "TestCase1", TC_FAIL, "%s:Original Value = %d; New Value = %d \n", #_x, _x, ORIG_##_x); \ } \