Fix a crash in OpenCL code by using the proper (RHS) bit-width.