From b5f348e37ec73f765e501da87ab775e2cea2f5b6 Mon Sep 17 00:00:00 2001 From: Chih-Chen Kao Date: Thu, 17 Aug 2017 02:16:11 +0800 Subject: [PATCH] remove the keyword `register' for C++17 remove the keyword `register' for C++17 --- tiny_obj_loader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index d0a7886..f21bff1 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -659,7 +659,7 @@ static bool exportFaceGroupToShape( const size_t nIndexs = shape.mesh.indices.size(); if (nIndexs % 3 == 0) { shape.mesh.normals.resize(shape.mesh.positions.size()); - for (register size_t iIndices = 0; iIndices < nIndexs; iIndices += 3) { + for (size_t iIndices = 0; iIndices < nIndexs; iIndices += 3) { float3 v1, v2, v3; memcpy(&v1, &shape.mesh.positions[shape.mesh.indices[iIndices] * 3], sizeof(float3));