 		return;
 
 	// data ID is a multiple of 64
-	long did = tid * 64;
+	long did = tid * 64L;
 
 	char *raw = (data + did);
 
-	int byteToProcess = ((did + 64) < num_bytes) ? 64 : (num_bytes - did);
+	long byteToProcess = ((did + 64L) < num_bytes) ? 64L : (num_bytes - did);
 
 	// process the data
-	int x = 0;
+	long x = 0;
 	long newLinesFound=0;
 	for (x = 0; x < byteToProcess; x++) {
 

		return;

	// data ID - multiple of 64
	long did = tid * 64;

	char *raw = (data + did);

	int byteToProcess = ((did + 64) < num_bytes) ? 64 : (num_bytes - did);

	if(tid==0){
		long pos = atomicAdd((unsigned long long int*)num_records,(unsigned long long int)1);

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


	CUDA_TRY(cudaGetLastError());

	return GDF_SUCCESS;
