Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X Lib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
XLibs
X Lib
Commits
a63cf7f8
Commit
a63cf7f8
authored
Jul 21, 2016
by
Alex Ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8376f49f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
BcDecHex.php
Tool/BC/BcDecHex.php
+1
-1
BcHexDec.php
Tool/BC/BcHexDec.php
+1
-1
No files found.
Tool/BC/BcDecHex.php
View file @
a63cf7f8
...
@@ -12,7 +12,7 @@ trait BcDecHex {
...
@@ -12,7 +12,7 @@ trait BcDecHex {
if
(
$remain
==
0
)
{
if
(
$remain
==
0
)
{
return
dechex
(
$last
);
return
dechex
(
$last
);
}
else
{
}
else
{
return
bcdechex
(
$remain
)
.
dechex
(
$last
);
return
$this
->
bcdechex
(
$remain
)
.
dechex
(
$last
);
}
}
}
}
}
}
...
...
Tool/BC/BcHexDec.php
View file @
a63cf7f8
...
@@ -11,7 +11,7 @@ trait BcHexDec {
...
@@ -11,7 +11,7 @@ trait BcHexDec {
}
else
{
}
else
{
$remain
=
substr
(
$hex
,
0
,
-
1
);
$remain
=
substr
(
$hex
,
0
,
-
1
);
$last
=
substr
(
$hex
,
-
1
);
$last
=
substr
(
$hex
,
-
1
);
return
bcadd
(
bcmul
(
16
,
bchexdec
(
$remain
)),
hexdec
(
$last
));
return
bcadd
(
bcmul
(
16
,
$this
->
bchexdec
(
$remain
)),
hexdec
(
$last
));
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment