From 767ed1dff017b81b679058145a72c269d79bc786 Mon Sep 17 00:00:00 2001 From: Alexey-t Date: Fri, 30 Dec 2016 03:32:34 +0300 Subject: [PATCH] refc --- app/formmain_py.inc | 12 +++--------- app/proc_msg.pas | 2 +- setup/cuda_ver.sh | 2 +- setup/debfiles/control | 2 +- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/app/formmain_py.inc b/app/formmain_py.inc index 2d431ee5f0f..07994e812ce 100644 --- a/app/formmain_py.inc +++ b/app/formmain_py.inc @@ -2993,14 +2993,6 @@ begin end; -type - TTreeEnumItem = record - Id: PtrInt; - Text: string; - end; - TTreeEnumArray = array of TTreeEnumItem; - -//tree_proc(id_tree, id_action, id_item, index, text, icon) function Py_tree_proc(Self, Args: PPyObject): PPyObject; cdecl; var IdTree, IdItem: Int64; @@ -3042,7 +3034,9 @@ begin raise EPythonError.Create(cPythonListError); for i:= 0 to ItemList.Count-1 do PyList_SetItem(Result, i, - Py_BuildValue('(Ls)', Int64(ItemList[i]), PChar(TTreeNode(ItemList[i]).Text) )); + Py_BuildValue('(Ls)', + Int64(PtrInt(ItemList[i])), + PChar(TTreeNode(ItemList[i]).Text) )); finally FreeAndNil(ItemList); end; diff --git a/app/proc_msg.pas b/app/proc_msg.pas index ab3f543ec7e..01b7d738834 100644 --- a/app/proc_msg.pas +++ b/app/proc_msg.pas @@ -15,7 +15,7 @@ interface Classes, SysUtils; const - cAppExeVersion = '1.6.0.2'; + cAppExeVersion = '1.6.0.3'; cAppApiVersion = '1.0.162'; const diff --git a/setup/cuda_ver.sh b/setup/cuda_ver.sh index 36d4cce2810..fc1e3fb3a37 100755 --- a/setup/cuda_ver.sh +++ b/setup/cuda_ver.sh @@ -1,2 +1,2 @@ #!/bin/sh -cuda_ver=1.6.0.2 +cuda_ver=1.6.0.3 diff --git a/setup/debfiles/control b/setup/debfiles/control index db6172b2275..eb541dcccdd 100644 --- a/setup/debfiles/control +++ b/setup/debfiles/control @@ -1,5 +1,5 @@ Package: cudatext -Version: 1.6.0.2-1 +Version: 1.6.0.3-1 Section: editors Priority: optional Architecture: amd64