Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbc7a19

Browse files
authored
Merge pull request #65 from iaz3/patch-1
Fix type inconsistency
2 parents 44fcf5c + e8c59ee commit fbc7a19

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

03_Drawing_a_triangle/00_Setup/01_Instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ the window system. GLFW has a handy built-in function that returns the
6262
extension(s) it needs to do that which we can pass to the struct:
6363

6464
```c++
65-
unsigned int glfwExtensionCount = 0;
65+
uint32_t glfwExtensionCount = 0;
6666
const char** glfwExtensions;
6767

6868
glfwExtensions = glfwGetRequiredInstanceExtensions(&glfwExtensionCount);

03_Drawing_a_triangle/00_Setup/02_Validation_layers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ not:
180180
std::vector<const char*> getRequiredExtensions() {
181181
std::vector<const char*> extensions;
182182

183-
unsigned int glfwExtensionCount = 0;
183+
uint32_t glfwExtensionCount = 0;
184184
const char** glfwExtensions;
185185
glfwExtensions = glfwGetRequiredInstanceExtensions(&glfwExtensionCount);
186186

187-
for (unsigned int i = 0; i < glfwExtensionCount; i++) {
187+
for (uint32_t i = 0; i < glfwExtensionCount; i++) {
188188
extensions.push_back(glfwExtensions[i]);
189189
}
190190

0 commit comments

Comments
 (0)