 	}
 
 	// process the data
-	int x = 0;
+	long x = 0;
 	for (x = 0; x < byteToProcess; x++) {
 
 		// records

	CUDA_TRY(cudaMemcpy(&recs, d_num_records, sizeof(long), cudaMemcpyDeviceToHost));
	csvData->num_records=recs;

	CUDA_TRY(cudaGetLastError());

	return GDF_SUCCESS;

	 * Each bitmap is for a 64-byte chunk
	 *  Note: could do one thread per byte, but that would require a lock on the bit map
	 */
	long threads 	= 1024;

	// Using the number of bitmaps as the size - data index is bitmap ID * 64
	long blocks = (numBitmaps + (threads -1)) / threads ;

	storeRecordStart <<< blocks, threads >>> (data, delim, terminator, num_bytes, numBitmaps,d_num_records,recStart);

