Skip to content

Commit

Permalink
Update bits-info.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git authored Oct 21, 2024
1 parent f57f164 commit 754131f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ hex_bytes_to_int()
compare_hex_bytes()
{
test "${3}" -gt 0 || return 1
test "$(printf '%s' "${1}" | cut -b "$((${2} * 2 + 1))-$(((${2} + ${3}) * 2))" || :)" = "${4}"
#test "$(printf '%s' "${1}" | cut -b "$((${2} * 2 + 1))-$(((${2} + ${3}) * 2))" || :)" = "${4}"
}

# Params:
Expand All @@ -192,7 +192,7 @@ compare_hex_bytes()
extract_bytes()
{
test "${3}" -gt 0 || return 1
printf '%s' "${1}" | cut -b "$((${2} * 2 + 1))-$(((${2} + ${3}) * 2))"
#printf '%s' "${1}" | cut -b "$((${2} * 2 + 1))-$(((${2} + ${3}) * 2))"
}

# Params:
Expand All @@ -203,7 +203,7 @@ extract_bytes()
extract_bytes_and_swap()
{
test "${3}" -gt 0 || return 1
_ebas_bytes="$(printf '%s' "${1}" | cut -b "$((${2} * 2 + 1))-$(((${2} + ${3}) * 2))")" || return 2
#_ebas_bytes="$(printf '%s' "${1}" | cut -b "$((${2} * 2 + 1))-$(((${2} + ${3}) * 2))")" || return 2

if test "${4-}" = 'true'; then
if test "${3}" = 4; then
Expand Down

0 comments on commit 754131f

Please sign in to comment.