TRUNK:added a new indexer functionality to the library. With the new -jpip option...
[openjpeg.git] / libopenjpeg / cio.c
index 3b0f816f254b8f827e31c9127f8f86b1bdb2842c..b8a7ecf8a873a7f4cf001e59334a98d4dc6ae383 100644 (file)
@@ -152,7 +152,7 @@ unsigned char cio_bytein(opj_cio_t *cio) {
  * v : value to write
  * n : number of bytes to write
  */
-unsigned int cio_write(opj_cio_t *cio, unsigned int v, int n) {
+unsigned int cio_write(opj_cio_t *cio, unsigned long long int v, int n) {
        int i;
        for (i = n - 1; i >= 0; i--) {
                if( !cio_byteout(cio, (unsigned char) ((v >> (i << 3)) & 0xff)) )