Skip to content

Commit 2d84d9f

Browse files
committed
abstract: Keep double values as doubles
1 parent bc1841b commit 2d84d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

talib/_abstract.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def _ta_getOptInputParameterInfo(char *function_name, int idx):
680680
name = bytes2str(info.paramName)
681681
name = name[len('optIn'):].lower()
682682
default_value = info.defaultValue
683-
if default_value % 1 == 0:
683+
if default_value % 1 == 0 and info.type > 1:
684684
default_value = int(default_value)
685685

686686
return {

0 commit comments

Comments
 (0)