{"action":"created","issue":{"url":"https://api.github.com/repos/byzhang/rapidjson/issues/10","labels_url":"https://api.github.com/repos/byzhang/rapidjson/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/byzhang/rapidjson/issues/10/comments","events_url":"https://api.github.com/repos/byzhang/rapidjson/issues/10/events","html_url":"https://github.com/byzhang/rapidjson/issues/10","id":59729631,"number":10,"title":"Compilation error in documet.h with GCC 4.2","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/byzhang/rapidjson/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/rapidjson/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/rapidjson/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-04T00:12:46Z","updated_at":"2015-03-04T00:12:47Z","closed_at":"2015-03-04T00:12:46Z","body":"```\nI try compile with GCC 4.2 on MacOS and I got error:\ninteger constant is to large for 'long' type\n\nin this code:\n\n\t//! Constructor for uint64_t value.\n\tGenericValue(uint64_t u64) : flags_(kNumberUint64Flag) {\n\t\tdata_.n.u64 = u64;\n\t\tif (!(u64 & 0x8000000000000000L))\n\t\t\tflags_ |= kInt64Flag;\n\t\tif (!(u64 & 0xFFFFFFFF00000000L))\n\t\t\tflags_ |= kUintFlag;\n\t\tif (!(u64 & 0xFFFFFFFF80000000L))\n\t\t\tflags_ |= kIntFlag;\n\t}\n\n```\n\nOriginal issue reported on code.google.com by `archj...@gmail.com` on 25 Jan 2012 at 5:25"},"comment":{"url":"https://api.github.com/repos/byzhang/rapidjson/issues/comments/77069408","html_url":"https://github.com/byzhang/rapidjson/issues/10#issuecomment-77069408","issue_url":"https://api.github.com/repos/byzhang/rapidjson/issues/10","id":77069408,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:12:46Z","updated_at":"2015-03-04T00:12:46Z","body":"```\nI do not have such environment to reproduce the problem. Can you help checking \nwhether ULL suffix able to solve the issue?\n\n\t\tif (!(u64 & 0x8000000000000000ULL))\n\t\t\tflags_ |= kInt64Flag;\n\t\tif (!(u64 & 0xFFFFFFFF00000000ULL))\n\t\t\tflags_ |= kUintFlag;\n\t\tif (!(u64 & 0xFFFFFFFF80000000ULL))\n\t\t\tflags_ |= kIntFlag;\n```\n\nOriginal comment by `milo...@gmail.com` on 31 Jan 2012 at 3:50"}}