X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_message_object.c;h=c26a2f196a3c595d8e238ad9b8dd3e826871ca67;hp=e934f8bd6a1792de423e1ae4fcfb925450ef5b26;hb=4f8c51464143f79fd4367c386e5108361ce83a42;hpb=2ee2c71823e82571f3441e80b6b13d35f5b0373c diff --git a/http_message_object.c b/http_message_object.c index e934f8b..c26a2f1 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -283,11 +283,11 @@ static void _http_message_object_write_prop(zval *object, zval *member, zval *va switch (msg->type) { case HTTP_MSG_REQUEST: - msg->info.request.http_version = (float) Z_DVAL_P(value); + msg->info.request.http_version = Z_DVAL_P(value); break; case HTTP_MSG_RESPONSE: - msg->info.response.http_version = (float) Z_DVAL_P(value); + msg->info.response.http_version = Z_DVAL_P(value); break; } break;