git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compilation errors in git.pu/refs/reftable-backend.c
@ 2020-04-27  4:34 Torsten Bögershausen
  2020-04-27 12:05 ` Han-Wen Nienhuys
  0 siblings, 1 reply; 5+ messages in thread
From: Torsten Bögershausen @ 2020-04-27  4:34 UTC (permalink / raw)
  To: git, Han-Wen Nienhuys

Folks, after the integration of the reftable branch:
Merge branch 'hn/reftable' into pu

My historic (?) compiler stumbles over this code here:
refs/reftable-backend.c
   for (int i = 0; i < transaction->nr; i++) {

So I think we could easily avoid the (for int i) construction.
The other observation could be, why we use an "int", when "nr" is
defined as a size_t ?

struct ref_transaction {
	struct ref_store *ref_store;
	struct ref_update **updates;
	size_t alloc;
	size_t nr;
	enum ref_transaction_state state;
	void *backend_data;
};

Thanks for working on Git

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-27 23:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27  4:34 Compilation errors in git.pu/refs/reftable-backend.c Torsten Bögershausen
2020-04-27 12:05 ` Han-Wen Nienhuys
2020-04-27 12:13   ` Jeff King
2020-04-27 13:13   ` Carlo Marcelo Arenas Belón
2020-04-27 23:26     ` brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).