From ec8c98f59869bee0e327d32f39480a0e4b1330bc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Jun 2017 11:31:15 +0200 Subject: use more SAL_N_ELEMENTS part 3 Change-Id: I82e366fefd2e31928b99840fe76649cc3521e623 Reviewed-on: https://gerrit.libreoffice.org/38789 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- binaryurp/qa/test-cache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binaryurp') diff --git a/binaryurp/qa/test-cache.cxx b/binaryurp/qa/test-cache.cxx index f14b3837629e..989b103e2e90 100644 --- a/binaryurp/qa/test-cache.cxx +++ b/binaryurp/qa/test-cache.cxx @@ -39,7 +39,7 @@ private: // cf. jurt/test/com/sun/star/lib/uno/protocols/urp/Cache_Test.java: void Test::testNothingLostFromLruList() { int a[8]; - for (int i = 0; i != sizeof a / sizeof a[0]; ++i) { + for (int i = 0; i != int(SAL_N_ELEMENTS(a)); ++i) { for (int j = 0; j != i; ++j) { a[j] = 0; } -- cgit