Remove XCB_CEIL and use a simpler definition for XCB_PAD.
[free-sw/xcb/libxcb] / src / xcb_out.c
index 89c7618..a6b0350 100644 (file)
@@ -137,7 +137,7 @@ int XCBSendRequest(XCBConnection *c, unsigned int *request, struct iovec *vector
 
     /* put together the length field, possibly using BIGREQUESTS */
     for(i = 0; i < req->count; ++i)
-        longlen += XCB_CEIL(vector[i].iov_len) >> 2;
+        longlen += (vector[i].iov_len + 3) >> 2;
 
     if(longlen > c->setup->maximum_request_length)
     {