{"action":"opened","issue":{"url":"https://api.github.com/repos/COMCIFS/cif_api/issues/2","labels_url":"https://api.github.com/repos/COMCIFS/cif_api/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/COMCIFS/cif_api/issues/2/comments","events_url":"https://api.github.com/repos/COMCIFS/cif_api/issues/2/events","html_url":"https://github.com/COMCIFS/cif_api/issues/2","id":100423705,"number":2,"title":"Wrong error code from cif_value_autoinit_numb() when su_rule is negative","user":{"login":"jcbollinger","id":3674065,"avatar_url":"https://avatars.githubusercontent.com/u/3674065?v=3","gravatar_id":"","url":"https://api.github.com/users/jcbollinger","html_url":"https://github.com/jcbollinger","followers_url":"https://api.github.com/users/jcbollinger/followers","following_url":"https://api.github.com/users/jcbollinger/following{/other_user}","gists_url":"https://api.github.com/users/jcbollinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jcbollinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcbollinger/subscriptions","organizations_url":"https://api.github.com/users/jcbollinger/orgs","repos_url":"https://api.github.com/users/jcbollinger/repos","events_url":"https://api.github.com/users/jcbollinger/events{/privacy}","received_events_url":"https://api.github.com/users/jcbollinger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/COMCIFS/cif_api/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"jcbollinger","id":3674065,"avatar_url":"https://avatars.githubusercontent.com/u/3674065?v=3","gravatar_id":"","url":"https://api.github.com/users/jcbollinger","html_url":"https://github.com/jcbollinger","followers_url":"https://api.github.com/users/jcbollinger/followers","following_url":"https://api.github.com/users/jcbollinger/following{/other_user}","gists_url":"https://api.github.com/users/jcbollinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jcbollinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcbollinger/subscriptions","organizations_url":"https://api.github.com/users/jcbollinger/orgs","repos_url":"https://api.github.com/users/jcbollinger/repos","events_url":"https://api.github.com/users/jcbollinger/events{/privacy}","received_events_url":"https://api.github.com/users/jcbollinger/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/COMCIFS/cif_api/milestones/1","html_url":"https://github.com/COMCIFS/cif_api/milestones/0.4.1","labels_url":"https://api.github.com/repos/COMCIFS/cif_api/milestones/1/labels","id":1250462,"number":1,"title":"0.4.1","description":null,"creator":{"login":"jcbollinger","id":3674065,"avatar_url":"https://avatars.githubusercontent.com/u/3674065?v=3","gravatar_id":"","url":"https://api.github.com/users/jcbollinger","html_url":"https://github.com/jcbollinger","followers_url":"https://api.github.com/users/jcbollinger/followers","following_url":"https://api.github.com/users/jcbollinger/following{/other_user}","gists_url":"https://api.github.com/users/jcbollinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jcbollinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcbollinger/subscriptions","organizations_url":"https://api.github.com/users/jcbollinger/orgs","repos_url":"https://api.github.com/users/jcbollinger/repos","events_url":"https://api.github.com/users/jcbollinger/events{/privacy}","received_events_url":"https://api.github.com/users/jcbollinger/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-08-11T18:42:07Z","updated_at":"2015-08-11T22:18:15Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-08-11T22:18:15Z","updated_at":"2015-08-11T22:18:15Z","closed_at":null,"body":"The documentation for `cif_value_autoinit_numb()` specifies that the third argument must not be less than 2.  The specific CIF API error code returned in such a case is not documented, but `CIF_ARGUMENT_ERROR` is a reasonable expectation, and that is what is returned when the third parameter is zero or one.  It returns `CIF_ERROR` instead, however, if the third argument is negative.  For example:\r\n\r\n    cif_value_autoinit_numb(value, 1.0, 0.5, -19);\r\n"}}