{"action":"created","comment":{"url":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/comments/215347979","pull_request_review_id":152592031,"id":215347979,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTM0Nzk3OQ==","diff_hunk":"@@ -206,6 +206,10 @@ public static IValue CreateIValue(object objParam)\n             {\r\n                 return ValueFactory.Create((decimal)(double)objParam);\r\n             }\r\n+            else if (type == typeof(Single))\r\n+            {\r\n+                return ValueFactory.Create((decimal)System.Convert.ToDouble(objParam));\r","path":"src/ScriptEngine/Machine/Contexts/COMWrapperContext.cs","position":6,"original_position":6,"commit_id":"c6bd6ab24d8ef832c49f2999ce5c7b49a54db0d1","original_commit_id":"c6bd6ab24d8ef832c49f2999ce5c7b49a54db0d1","user":{"login":"nixel2007","id":1132840,"node_id":"MDQ6VXNlcjExMzI4NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1132840?v=4","gravatar_id":"","url":"https://api.github.com/users/nixel2007","html_url":"https://github.com/nixel2007","followers_url":"https://api.github.com/users/nixel2007/followers","following_url":"https://api.github.com/users/nixel2007/following{/other_user}","gists_url":"https://api.github.com/users/nixel2007/gists{/gist_id}","starred_url":"https://api.github.com/users/nixel2007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixel2007/subscriptions","organizations_url":"https://api.github.com/users/nixel2007/orgs","repos_url":"https://api.github.com/users/nixel2007/repos","events_url":"https://api.github.com/users/nixel2007/events{/privacy}","received_events_url":"https://api.github.com/users/nixel2007/received_events","type":"User","site_admin":false},"body":"Парой строчек выше double кастится в decimal. Здесь Single конвертится в double и так же кастится в decimal. Почему это не должно работать? ","created_at":"2018-09-05T16:52:36Z","updated_at":"2018-09-05T16:52:36Z","html_url":"https://github.com/EvilBeaver/OneScript/pull/801#discussion_r215347979","pull_request_url":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/801","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/comments/215347979"},"html":{"href":"https://github.com/EvilBeaver/OneScript/pull/801#discussion_r215347979"},"pull_request":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/801"}},"in_reply_to_id":215342776},"pull_request":{"url":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/801","id":212972947,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyOTcyOTQ3","html_url":"https://github.com/EvilBeaver/OneScript/pull/801","diff_url":"https://github.com/EvilBeaver/OneScript/pull/801.diff","patch_url":"https://github.com/EvilBeaver/OneScript/pull/801.patch","issue_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/801","number":801,"state":"open","locked":false,"title":"Поддержка single в COMОбъектах. Fix #798","user":{"login":"nixel2007","id":1132840,"node_id":"MDQ6VXNlcjExMzI4NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1132840?v=4","gravatar_id":"","url":"https://api.github.com/users/nixel2007","html_url":"https://github.com/nixel2007","followers_url":"https://api.github.com/users/nixel2007/followers","following_url":"https://api.github.com/users/nixel2007/following{/other_user}","gists_url":"https://api.github.com/users/nixel2007/gists{/gist_id}","starred_url":"https://api.github.com/users/nixel2007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixel2007/subscriptions","organizations_url":"https://api.github.com/users/nixel2007/orgs","repos_url":"https://api.github.com/users/nixel2007/repos","events_url":"https://api.github.com/users/nixel2007/events{/privacy}","received_events_url":"https://api.github.com/users/nixel2007/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-04T13:17:24Z","updated_at":"2018-09-05T16:52:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58f37e1230c32237ad2095b73cd0907b28b742f3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/801/commits","review_comments_url":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/801/comments","review_comment_url":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/801/comments","statuses_url":"https://api.github.com/repos/EvilBeaver/OneScript/statuses/c6bd6ab24d8ef832c49f2999ce5c7b49a54db0d1","head":{"label":"EvilBeaver:feature/com-single","ref":"feature/com-single","sha":"c6bd6ab24d8ef832c49f2999ce5c7b49a54db0d1","user":{"login":"EvilBeaver","id":2657561,"node_id":"MDQ6VXNlcjI2NTc1NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/2657561?v=4","gravatar_id":"","url":"https://api.github.com/users/EvilBeaver","html_url":"https://github.com/EvilBeaver","followers_url":"https://api.github.com/users/EvilBeaver/followers","following_url":"https://api.github.com/users/EvilBeaver/following{/other_user}","gists_url":"https://api.github.com/users/EvilBeaver/gists{/gist_id}","starred_url":"https://api.github.com/users/EvilBeaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvilBeaver/subscriptions","organizations_url":"https://api.github.com/users/EvilBeaver/orgs","repos_url":"https://api.github.com/users/EvilBeaver/repos","events_url":"https://api.github.com/users/EvilBeaver/events{/privacy}","received_events_url":"https://api.github.com/users/EvilBeaver/received_events","type":"User","site_admin":false},"repo":{"id":55775973,"node_id":"MDEwOlJlcG9zaXRvcnk1NTc3NTk3Mw==","name":"OneScript","full_name":"EvilBeaver/OneScript","owner":{"login":"EvilBeaver","id":2657561,"node_id":"MDQ6VXNlcjI2NTc1NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/2657561?v=4","gravatar_id":"","url":"https://api.github.com/users/EvilBeaver","html_url":"https://github.com/EvilBeaver","followers_url":"https://api.github.com/users/EvilBeaver/followers","following_url":"https://api.github.com/users/EvilBeaver/following{/other_user}","gists_url":"https://api.github.com/users/EvilBeaver/gists{/gist_id}","starred_url":"https://api.github.com/users/EvilBeaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvilBeaver/subscriptions","organizations_url":"https://api.github.com/users/EvilBeaver/orgs","repos_url":"https://api.github.com/users/EvilBeaver/repos","events_url":"https://api.github.com/users/EvilBeaver/events{/privacy}","received_events_url":"https://api.github.com/users/EvilBeaver/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EvilBeaver/OneScript","description":"Исполняющая среда скриптов на языке 1С","fork":false,"url":"https://api.github.com/repos/EvilBeaver/OneScript","forks_url":"https://api.github.com/repos/EvilBeaver/OneScript/forks","keys_url":"https://api.github.com/repos/EvilBeaver/OneScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EvilBeaver/OneScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EvilBeaver/OneScript/teams","hooks_url":"https://api.github.com/repos/EvilBeaver/OneScript/hooks","issue_events_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/events{/number}","events_url":"https://api.github.com/repos/EvilBeaver/OneScript/events","assignees_url":"https://api.github.com/repos/EvilBeaver/OneScript/assignees{/user}","branches_url":"https://api.github.com/repos/EvilBeaver/OneScript/branches{/branch}","tags_url":"https://api.github.com/repos/EvilBeaver/OneScript/tags","blobs_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EvilBeaver/OneScript/statuses/{sha}","languages_url":"https://api.github.com/repos/EvilBeaver/OneScript/languages","stargazers_url":"https://api.github.com/repos/EvilBeaver/OneScript/stargazers","contributors_url":"https://api.github.com/repos/EvilBeaver/OneScript/contributors","subscribers_url":"https://api.github.com/repos/EvilBeaver/OneScript/subscribers","subscription_url":"https://api.github.com/repos/EvilBeaver/OneScript/subscription","commits_url":"https://api.github.com/repos/EvilBeaver/OneScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/EvilBeaver/OneScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/EvilBeaver/OneScript/contents/{+path}","compare_url":"https://api.github.com/repos/EvilBeaver/OneScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EvilBeaver/OneScript/merges","archive_url":"https://api.github.com/repos/EvilBeaver/OneScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EvilBeaver/OneScript/downloads","issues_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues{/number}","pulls_url":"https://api.github.com/repos/EvilBeaver/OneScript/pulls{/number}","milestones_url":"https://api.github.com/repos/EvilBeaver/OneScript/milestones{/number}","notifications_url":"https://api.github.com/repos/EvilBeaver/OneScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EvilBeaver/OneScript/labels{/name}","releases_url":"https://api.github.com/repos/EvilBeaver/OneScript/releases{/id}","deployments_url":"https://api.github.com/repos/EvilBeaver/OneScript/deployments","created_at":"2016-04-08T12:04:21Z","updated_at":"2018-09-05T16:51:12Z","pushed_at":"2018-09-05T16:51:09Z","git_url":"git://github.com/EvilBeaver/OneScript.git","ssh_url":"git@github.com:EvilBeaver/OneScript.git","clone_url":"https://github.com/EvilBeaver/OneScript.git","svn_url":"https://github.com/EvilBeaver/OneScript","homepage":"http://oscript.io","size":17004,"stargazers_count":130,"watchers_count":130,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":90,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":53,"open_issues":90,"watchers":130,"default_branch":"develop"}},"base":{"label":"EvilBeaver:develop","ref":"develop","sha":"00ce9c835fed875bdb3cb6e9e9d46a15452aa4c4","user":{"login":"EvilBeaver","id":2657561,"node_id":"MDQ6VXNlcjI2NTc1NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/2657561?v=4","gravatar_id":"","url":"https://api.github.com/users/EvilBeaver","html_url":"https://github.com/EvilBeaver","followers_url":"https://api.github.com/users/EvilBeaver/followers","following_url":"https://api.github.com/users/EvilBeaver/following{/other_user}","gists_url":"https://api.github.com/users/EvilBeaver/gists{/gist_id}","starred_url":"https://api.github.com/users/EvilBeaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvilBeaver/subscriptions","organizations_url":"https://api.github.com/users/EvilBeaver/orgs","repos_url":"https://api.github.com/users/EvilBeaver/repos","events_url":"https://api.github.com/users/EvilBeaver/events{/privacy}","received_events_url":"https://api.github.com/users/EvilBeaver/received_events","type":"User","site_admin":false},"repo":{"id":55775973,"node_id":"MDEwOlJlcG9zaXRvcnk1NTc3NTk3Mw==","name":"OneScript","full_name":"EvilBeaver/OneScript","owner":{"login":"EvilBeaver","id":2657561,"node_id":"MDQ6VXNlcjI2NTc1NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/2657561?v=4","gravatar_id":"","url":"https://api.github.com/users/EvilBeaver","html_url":"https://github.com/EvilBeaver","followers_url":"https://api.github.com/users/EvilBeaver/followers","following_url":"https://api.github.com/users/EvilBeaver/following{/other_user}","gists_url":"https://api.github.com/users/EvilBeaver/gists{/gist_id}","starred_url":"https://api.github.com/users/EvilBeaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvilBeaver/subscriptions","organizations_url":"https://api.github.com/users/EvilBeaver/orgs","repos_url":"https://api.github.com/users/EvilBeaver/repos","events_url":"https://api.github.com/users/EvilBeaver/events{/privacy}","received_events_url":"https://api.github.com/users/EvilBeaver/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EvilBeaver/OneScript","description":"Исполняющая среда скриптов на языке 1С","fork":false,"url":"https://api.github.com/repos/EvilBeaver/OneScript","forks_url":"https://api.github.com/repos/EvilBeaver/OneScript/forks","keys_url":"https://api.github.com/repos/EvilBeaver/OneScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EvilBeaver/OneScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EvilBeaver/OneScript/teams","hooks_url":"https://api.github.com/repos/EvilBeaver/OneScript/hooks","issue_events_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/events{/number}","events_url":"https://api.github.com/repos/EvilBeaver/OneScript/events","assignees_url":"https://api.github.com/repos/EvilBeaver/OneScript/assignees{/user}","branches_url":"https://api.github.com/repos/EvilBeaver/OneScript/branches{/branch}","tags_url":"https://api.github.com/repos/EvilBeaver/OneScript/tags","blobs_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EvilBeaver/OneScript/statuses/{sha}","languages_url":"https://api.github.com/repos/EvilBeaver/OneScript/languages","stargazers_url":"https://api.github.com/repos/EvilBeaver/OneScript/stargazers","contributors_url":"https://api.github.com/repos/EvilBeaver/OneScript/contributors","subscribers_url":"https://api.github.com/repos/EvilBeaver/OneScript/subscribers","subscription_url":"https://api.github.com/repos/EvilBeaver/OneScript/subscription","commits_url":"https://api.github.com/repos/EvilBeaver/OneScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/EvilBeaver/OneScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/EvilBeaver/OneScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/EvilBeaver/OneScript/contents/{+path}","compare_url":"https://api.github.com/repos/EvilBeaver/OneScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EvilBeaver/OneScript/merges","archive_url":"https://api.github.com/repos/EvilBeaver/OneScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EvilBeaver/OneScript/downloads","issues_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues{/number}","pulls_url":"https://api.github.com/repos/EvilBeaver/OneScript/pulls{/number}","milestones_url":"https://api.github.com/repos/EvilBeaver/OneScript/milestones{/number}","notifications_url":"https://api.github.com/repos/EvilBeaver/OneScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EvilBeaver/OneScript/labels{/name}","releases_url":"https://api.github.com/repos/EvilBeaver/OneScript/releases{/id}","deployments_url":"https://api.github.com/repos/EvilBeaver/OneScript/deployments","created_at":"2016-04-08T12:04:21Z","updated_at":"2018-09-05T16:51:12Z","pushed_at":"2018-09-05T16:51:09Z","git_url":"git://github.com/EvilBeaver/OneScript.git","ssh_url":"git@github.com:EvilBeaver/OneScript.git","clone_url":"https://github.com/EvilBeaver/OneScript.git","svn_url":"https://github.com/EvilBeaver/OneScript","homepage":"http://oscript.io","size":17004,"stargazers_count":130,"watchers_count":130,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":90,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":53,"open_issues":90,"watchers":130,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/801"},"html":{"href":"https://github.com/EvilBeaver/OneScript/pull/801"},"issue":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/issues/801"},"comments":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/issues/801/comments"},"review_comments":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/801/comments"},"review_comment":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/pulls/801/commits"},"statuses":{"href":"https://api.github.com/repos/EvilBeaver/OneScript/statuses/c6bd6ab24d8ef832c49f2999ce5c7b49a54db0d1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"nixel2007"}}