<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>licheng</author_name>
  <author_url>https://blog.hatena.ne.jp/licheng/</author_url>
  <blog_title>滴了庵日録</blog_title>
  <blog_url>https://lipoyang.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>昨日の日記に書いた整数リテラルのバグの件、 別に●芝のコンパイラが悪いのではなく、（かなりアホなコンパイラなんですが） 僕の認識不足でした。 intが16ビットの処理系なので、無印の整数リテラルは16ビットすなわちshort型とみなされるようで、 unsigned long hoge = (4950*4096+500)/1000; と書くと、4950*4096+500 = 20275700 = 0x13561F4 が桁あふれで 0x61F4 = 25076 となり、 hoge = 25076 / 1000 = 25 となります。 これを防ぐには、long型であることを示すために整数リテラルの末…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flipoyang.hatenablog.com%2Fentry%2F20091007%2Fp1&quot; title=&quot;整数リテラル - 滴了庵日録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-10-07 00:00:00</published>
  <title>整数リテラル</title>
  <type>rich</type>
  <url>https://lipoyang.hatenablog.com/entry/20091007/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
