Blob Blame History Raw
--- mgl/mgl_data_io.cpp	2010-11-16 13:02:05.000000000 +0000
+++ mgl/mgl_data_io.cpp.new	2010-11-26 23:40:52.821155381 +0000
@@ -914,13 +914,13 @@
 void mglData::ReadHDF4(const char *fname,const char *data)
 {
 #ifdef HAVE_HDF4
-	int sd = SDstart(fname,DFACC_READ), nn, i;
+	int32 sd = SDstart(fname,DFACC_READ), nn, i;
 	if(sd==-1)	return;	// is not a HDF4 file
 	char name[64];
 	SDfileinfo(sd,&nn,&i);
 	for(i=0;i<nn;i++)
 	{
-		int sds, rank, dims[32], type, attr, in[2]={0,0};
+		int32 sds, rank, dims[32], type, attr, in[2]={0,0};
 		sds = SDselect(sd,i);
 		SDgetinfo(sds,name,&rank,dims,&type,&attr);
 		if(!strcmp(name,data))	// as I understand there are possible many datas with the same name