Skip to content

Commit 18c614e

Browse files
author
Daniel Kroening
committed
ranged for
1 parent 39807f8 commit 18c614e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java_bytecode/java_bytecode_convert_class.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ void java_bytecode_convert_classt::add_array_types()
252252
{
253253
const char letters[]="ijsbcfdza";
254254

255-
for(unsigned i=0; letters[i]!=0; i++)
255+
for(const char l : letters)
256256
{
257257
symbol_typet symbol_type=
258-
to_symbol_type(java_array_type(letters[i]).subtype());
258+
to_symbol_type(java_array_type(l).subtype());
259259

260260
struct_typet struct_type;
261261
// we have the base class, java.lang.Object, length and data

0 commit comments

Comments
 (0)