Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: [PATCH 2/3] sha1: clean pointer arithmetic

From: Yann Droneaud <hidden>
Date: 2016-06-15 22:54:44

Le mercredi 12 septembre 2012 à 11:37 -0700, Junio C Hamano a écrit :
Yann Droneaud [off-list ref] writes:
quoted
One memcpy() argument is computed from a pointer added to an integer:
eg. int + pointer. It's unusal.
Let's write it in the correct order: pointer + offset.
Meh.

Both are correct.  Aren't ctx->w[lenW] and lenW[ctx-w] both correct,
even?
"correct" in my commit log message should be read as "the way it's used
by most C developer".

It's again a cosmetic fix.

-- 
Yann Droneaud
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help