mirror of
https://github.com/nicolabs/ciform.git
synced 2026-04-11 08:36:19 +02:00
# fixed : global variable c was declared from functions
This commit is contained in:
parent
c05cf61a87
commit
5a0eaea79a
|
|
@ -14,7 +14,7 @@ function s2b(s)
|
|||
{
|
||||
if((sb<<=1) > 255)
|
||||
{
|
||||
sb=1; c=s.charCodeAt(sn++);
|
||||
sb=1; var c=s.charCodeAt(sn++);
|
||||
}
|
||||
if(bn > bm)
|
||||
{
|
||||
|
|
@ -56,7 +56,7 @@ function s2hex(s)
|
|||
var result = '';
|
||||
for(var i=0; i<s.length; i++)
|
||||
{
|
||||
c = s.charCodeAt(i);
|
||||
var c = s.charCodeAt(i);
|
||||
result += ((c<16) ? "0" : "") + c.toString(16);
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in a new issue