Skip to content

Commit fc3eb9b

Browse files
committed
fixed warnings detected by clang
1 parent bd9bb17 commit fc3eb9b

File tree

1 file changed

+3
-3
lines changed
  • src/examples/graphics/demo_Evert

1 file changed

+3
-3
lines changed

src/examples/graphics/demo_Evert/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ namespace {
420420
} else {
421421
// (glupPrivateXXX are just faster inline versions
422422
// of glupXXX)
423-
glupPrivateNormal3fv((float*)N);
423+
glupPrivateNormal3fv(const_cast<float*>(N));
424424
}
425425
}
426426

@@ -528,12 +528,12 @@ namespace {
528528
quads_order_.begin(), quads_order_.end(),
529529
[this](index_t i, index_t j)->bool{
530530
// compares the avg depth of both quads
531-
double z1 =
531+
float z1 =
532532
quads_[8*i+1].z +
533533
quads_[8*i+3].z +
534534
quads_[8*i+5].z +
535535
quads_[8*i+7].z ;
536-
double z2 =
536+
float z2 =
537537
quads_[8*j+1].z +
538538
quads_[8*j+3].z +
539539
quads_[8*j+5].z +

0 commit comments

Comments
 (0)