Skip to content

Kristian Nielsen's blog

Tag: compiler

Integer overflow

What do you think of this piece of C code? void foo(long v) { unsigned long u; unsigned sign; if (v < 0) { u = -v; sign = 1; } else { u = v; sign = 0; } … Seems pretty simple, right? Then what do you think of this output from MySQL:… Continue reading Integer overflow

Published July 3, 2012
Categorized as Uncategorized Tagged c, compiler, database, freesoftware, mysql, programming

Recent Posts

  • Talk: The implementation of MariaDB parallel replication
  • Starting as Chief Architect Replication with MariaDB Foundation
  • EU-parlamentsvalget – undgå at støtte en corona-galning
  • LPBi14042 bicycle light
  • Hacking a box of 240×320 displays with the ESP8266

Recent Comments

  • Aleksandar Kostadinov on Selecting rows holding group-wise maximum of a field
  • knielsen on Hacking a box of 240×320 displays with the ESP8266
  • (Anonymous) on Hacking a box of 240×320 displays with the ESP8266
  • (Anonymous) on Hacking a box of 240×320 displays with the ESP8266
  • knielsen on Hacking a box of 240×320 displays with the ESP8266

Archives

  • November 2024
  • August 2024
  • June 2024
  • September 2021
  • July 2017
  • May 2017
  • February 2015
  • March 2014
  • February 2014
  • January 2014
  • November 2013
  • February 2013
  • January 2013
  • July 2012
  • June 2012
  • June 2011
  • March 2011
  • February 2011
  • December 2010
  • October 2010
  • September 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • October 2009
  • August 2009
  • June 2009
  • February 2009
  • January 2009
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • June 2008
  • April 2008
  • February 2008
  • May 2007
  • September 2006
  • June 2006
  • May 2006
  • April 2006

Meta

  • Log in
  • Entries feed
  • Comments feed
  • Kristian Nielsen's homepage
Kristian Nielsen's blog