- printf("%ld",strlen(...)) gives a warning on SL5
hope that gives no warning on Mac OS X
This commit is contained in:
@ -117,10 +117,10 @@ static void writePolterdiGlobal(NXhandle hfil, NXdict hdict,
|
|||||||
|
|
||||||
NXDputalias(hfil,hdict,"estart",pBueffel);
|
NXDputalias(hfil,hdict,"estart",pBueffel);
|
||||||
SNXSPutVariable(pServ->pSics,pCon,hfil,hdict,"iname","instrument");
|
SNXSPutVariable(pServ->pSics,pCon,hfil,hdict,"iname","instrument");
|
||||||
sprintf(pBueffel,"%ld",strlen("SINQ, PSI, Switzerland"));
|
sprintf(pBueffel,"%d",(int)strlen("SINQ, PSI, Switzerland"));
|
||||||
NXDupdate(hdict,"strdim",pBueffel);
|
NXDupdate(hdict,"strdim",pBueffel);
|
||||||
NXDputalias(hfil,hdict,"sname","SINQ, PSI, Switzerland");
|
NXDputalias(hfil,hdict,"sname","SINQ, PSI, Switzerland");
|
||||||
sprintf(pBueffel,"%ld",strlen("continous spallation source"));
|
sprintf(pBueffel,"%d",(int)strlen("continous spallation source"));
|
||||||
NXDupdate(hdict,"strdim",pBueffel);
|
NXDupdate(hdict,"strdim",pBueffel);
|
||||||
NXDputalias(hfil,hdict,"stype","continous spallation source");
|
NXDputalias(hfil,hdict,"stype","continous spallation source");
|
||||||
NXDupdate(hdict,"strdim","132");
|
NXDupdate(hdict,"strdim","132");
|
||||||
|
Reference in New Issue
Block a user