iphone - "Implicit Conversion Loses Integer Precision" error -


i have code , following error: implicit conversion loses integer precision

size_t bitarray::wordsforbits(size_t bits) {   int arraysize = (bits + bitsperword_ - 1) >> logbits_;   return arraysize;     } 

how can resolve this?


Comments

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -