There is still one artefact of strtol in sl.c

A jtstfind(J jt,B b,I n,C*u){I old;L*v;
 if(!n){n=4; u="base";}
 if('9'>=*u)R stfindnum(b,strtol(u,NULL,10));
 else{
  old=jt->tbase+jt->ttop; v=probe(nfs(n,u),jt->stloc);
tpop(old);
  R v?v->val:b?stcreate(0,jt->locsize[0],n,u):0;
}}   /* find the symbol table for locale u, create if b and
non-existent */

Is it safe to use strtol here?

Is it ok to change to strtoI?

* strtol returns 32-bit integers under 32-bit windows.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to