skip to main
|
skip to sidebar
bits
defective technology, defective people
at most 660 pixels wide
Saturday, October 1, 2011
oops
I found this nice, classic "beware of macros" bug:
#define MAX(a, b) ((a) > (b) ? (a) : (b))
[ ... ]
int x = MAX(foo, bar++); // incremented either once or twice
Oops.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
posts
►
2012
(4)
►
June
(1)
►
February
(2)
►
January
(1)
▼
2011
(9)
►
November
(1)
▼
October
(1)
oops
►
September
(1)
►
August
(1)
►
July
(1)
►
June
(2)
►
April
(1)
►
March
(1)
►
2010
(9)
►
September
(1)
►
August
(3)
►
June
(1)
►
April
(1)
►
March
(1)
►
February
(2)
►
2009
(14)
►
December
(1)
►
October
(1)
►
September
(1)
►
May
(3)
►
April
(3)
►
March
(4)
►
February
(1)
►
2008
(38)
►
December
(8)
►
November
(2)
►
October
(4)
►
September
(3)
►
August
(1)
►
July
(1)
►
June
(4)
►
May
(4)
►
April
(2)
►
March
(4)
►
February
(2)
►
January
(3)
►
2007
(97)
►
December
(7)
►
November
(11)
►
October
(12)
►
September
(11)
►
August
(14)
►
July
(11)
►
June
(7)
►
May
(4)
►
April
(1)
►
March
(10)
►
February
(9)
word of the week
royalty
past words:
modesty
escrow, unceremoniously
prom, chutzpah
scorn, loan, mourn, moan,
barf, tart, turf, fart
loan calculator
Amount of loan
??
Repayment amount
??
Loan term (years)
??
Interest rate
Repayment frequency
Weekly
Fortnightly
Monthly
list of stuff
empty.
aboot
razvan784
Bucharest, Romania
View my complete profile
null
terminator