{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6616","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6616/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6616/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6616/events","html_url":"https://github.com/numpy/numpy/issues/6616","id":114670565,"number":6616,"title":"ndarray with buffer of integer 0's and 64-bit dtype raises TypeError exception \"buffer is too small for requested array\", but not float 0's","user":{"login":"mpconte","id":7958011,"avatar_url":"https://avatars.githubusercontent.com/u/7958011?v=3","gravatar_id":"","url":"https://api.github.com/users/mpconte","html_url":"https://github.com/mpconte","followers_url":"https://api.github.com/users/mpconte/followers","following_url":"https://api.github.com/users/mpconte/following{/other_user}","gists_url":"https://api.github.com/users/mpconte/gists{/gist_id}","starred_url":"https://api.github.com/users/mpconte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpconte/subscriptions","organizations_url":"https://api.github.com/users/mpconte/orgs","repos_url":"https://api.github.com/users/mpconte/repos","events_url":"https://api.github.com/users/mpconte/events{/privacy}","received_events_url":"https://api.github.com/users/mpconte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"ff0000"},{"url":"https://api.github.com/repos/numpy/numpy/labels/Defect","name":"Defect","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-02T19:48:30Z","updated_at":"2015-11-02T19:55:44Z","closed_at":null,"body":"Python v3.4.3\r\nNumpy v1.10.1\r\nWindows 7 Professional x64\r\n\r\n\r\n**np.ndarray(shape=(2, 1), buffer=np.array([0, 0]), dtype=np.int64) => raises TypeError: buffer is too small for requested array**\r\n\r\n**np.ndarray(shape=(2, 1), buffer=np.array([0, 0]), dtype=np.float64) => raises TypeError: buffer is too small for requested array**\r\n\r\nBut...\r\n\r\n**np.ndarray(shape=(2, 1), buffer=np.array([0.0, 0.0]), dtype=np.int64) => OK**\r\n\r\n**np.ndarray(shape=(2, 1), buffer=np.array([0.0, 0.0]), dtype=np.float64) => OK**"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/153139501","html_url":"https://github.com/numpy/numpy/issues/6616#issuecomment-153139501","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6616","id":153139501,"user":{"login":"charris","id":77272,"avatar_url":"https://avatars.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T19:55:44Z","updated_at":"2015-11-02T19:55:44Z","body":"Oh, I see, it is windows. Your buffer is probably composed of `int32`, try making it `int64`. I don't know if this should be considered an bug or not."}}