Skip to content

Commit db81cea

Browse files
committed
apdu.lua: convert to integer #atr output
Lua 5.3 changes the way behaves with floats and integers. To maintain the same output as with Lua 5.2 convert #atr to integer. This way cold ATR appears as for example 23 instead 23.0. Signed-off-by: David Santamaría Rogado <[email protected]>
1 parent de8cee2 commit db81cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dot_cardpeek_dir/scripts/lib/apdu.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function card.tree_startup(title)
113113

114114
atrnode = mycard:append({ classname="atr",
115115
label="cold ATR",
116-
size=#atr,
116+
size=math.tointeger(#atr),
117117
val=atr })
118118

119119
if candidates then

0 commit comments

Comments
 (0)