{"id":1841,"date":"2012-12-17T20:34:14","date_gmt":"2012-12-17T11:34:14","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=1841"},"modified":"2012-12-17T20:34:14","modified_gmt":"2012-12-17T11:34:14","slug":"c%e3%81%ae16%e9%80%b2%e3%83%aa%e3%83%86%e3%83%a9%e3%83%ab%e3%81%a7%e3%82%b3%e3%83%b3%e3%83%91%e3%82%a4%e3%83%ab%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/1841","title":{"rendered":"C++\u306e16\u9032\u30ea\u30c6\u30e9\u30eb\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>\u3068\u308a\u3042\u3048\u305a\u30e1\u30e2\u3002<\/p>\n<p>Apple LLVM compiler 4.1\u306eC++ Language Dialect\u3092GNU++11\u306b\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306aC++\u306e\u30b3\u30fc\u30c9\u306716\u9032\u30ea\u30c6\u30e9\u30eb\u90e8\u5206\u30920x7FFFFFFF\u4ee5\u4e0a\u306b\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">int test&#x5B;] = {0xFFFFFF9C};<\/pre>\n<p>\u30a8\u30e9\u30fc\u5185\u5bb9\u306f\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3001\u3069\u3046\u3082\u30ea\u30c6\u30e9\u30eb\u3092unsigned int\u3068\u89e3\u91c8\u3057\u305f\u3068\u3057\u3066\u3001\u305d\u308c\u304cint\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u308b\u5834\u5408\u306b\u8d77\u304d\u308b\u307f\u305f\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Constant expression evaluates to 4294967196 which cannot be narrowed to type 'int'<\/pre>\n<p>\u3061\u306a\u307f\u306b\u6b21\u306e\u3088\u3046\u306b\u914d\u5217\u3058\u3083\u306a\u3051\u308c\u3070\u30a8\u30e9\u30fc\u306b\u306f\u306a\u3089\u306a\u3044\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">int test = 0xFFFFFF9C;<\/pre>\n<p>\u624b\u3063\u53d6\u308a\u65e9\u3044\u89e3\u6c7a\u65b9\u6cd5\u306f\u3001C++ Language Dialect\u3092Compiler Default\u306b\u3059\u308b\u4e8b\u3002<\/p>\n<p>\u3082\u3046\u3072\u3068\u3064\u306f\u3001C++ Language Dialect\u306fGNU++11\u306e\u307e\u307e\u3067\u6b21\u306e\u3088\u3046\u306b\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u3057\u307e\u3046\u4e8b\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">int test&#x5B;] = {(int)0xFFFFFF9C};<\/pre>\n<p>\u3082\u3057\u304f\u306f<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">int test&#x5B;] = {static_cast&lt;int&gt;(0xFFFFFF9C)};<\/pre>\n<p>PVRTMathTable.h \u3067\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u304f\u3063\u3066\u6c17\u3065\u3044\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3068\u308a\u3042\u3048\u305a\u30e1\u30e2\u3002<\/p>\n<p>Apple LLVM compiler 4.1\u306eC++ Language Dialect\u3092GNU++11\u306b\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306aC++\u306e\u30b3\u30fc\u30c9\u306716\u9032\u30ea\u30c6\u30e9\u30eb\u90e8\u5206\u30920x7FFFFFFF\u4ee5\u4e0a\u306b\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">int test&#x5B;] = {0xFFFFFF9C};<\/pre>\n<p>\u30a8\u30e9\u30fc\u5185\u5bb9\u306f\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3001\u3069\u3046\u3082\u30ea\u30c6\u30e9\u30eb\u3092unsigned int\u3068\u89e3\u91c8\u3057\u305f\u3068\u3057\u3066\u3001\u305d\u308c\u304cint\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u308b\u5834\u5408\u306b\u8d77\u304d\u308b\u307f\u305f\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Constant expression evaluates to 4294967196 which cannot be narrowed to type 'int'<\/pre>\n<p>\u3061\u306a\u307f\u306b\u6b21\u306e\u3088\u3046\u306b\u914d\u5217\u3058\u3083\u306a\u3051\u308c\u3070\u30a8\u30e9\u30fc\u306b\u306f\u306a\u3089\u306a\u3044\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">int test = 0xFFFFFF9C;<\/pre>\n<p>\u624b\u3063\u53d6\u308a\u65e9\u3044\u89e3\u6c7a\u65b9\u6cd5\u306f\u3001C++ Language Dialect\u3092Compiler Default\u306b\u3059\u308b\u4e8b\u3002<\/p>\n<p>\u3082\u3046\u3072\u3068\u3064\u306f\u3001C++ Language Dialect\u306fGNU++11\u306e\u307e\u307e\u3067\u6b21\u306e\u3088\u3046\u306b\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u3057\u307e\u3046\u4e8b\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">int test&#x5B;] = {(int)0xFFFFFF9C};<\/pre>\n<p>\u3082\u3057\u304f\u306f<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">int test&#x5B;] = {static_cast&lt;int&gt;(0xFFFFFF9C)};<\/pre>\n<p>PVRTMathTable.h \u3067\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u304f\u3063\u3066\u6c17\u3065\u3044\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[437,313],"class_list":["post-1841","post","type-post","status-publish","format-standard","hentry","category-tech","tag-c","tag-xcode"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=1841"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1841\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=1841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=1841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=1841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}