Skip to content

Commit

Permalink
style: resolve C lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Nov 13, 2023
1 parent 37c6c77 commit c000185
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 3.14, -3.14, 1.0/0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 1.0/0.0, 0.0/0.0 };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 3.14f, -3.14f, 1.0f/0.0f, 0.0f/0.0f };
const float x[] = { 3.14f, -3.14f, 1.0f/0.0f, 0.0f/0.0f };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 3.14, -3.14, 1.0/0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 1.0/0.0, 0.0/0.0 };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 3.14f, -3.14f, 1.0f/0.0f, 0.0f/0.0f };
const float x[] = { 3.14f, -3.14f, 1.0f/0.0f, 0.0f/0.0f };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };
const double x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };
const float x[] = { 0.0f, -0.0f, 3.14f, 0.0f/0.0f };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };
const double x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };

bool b;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };
const float x[] = { 0.0f, -0.0f, 3.14f, 0.0f/0.0f };

bool b;
int i;
Expand Down

0 comments on commit c000185

Please sign in to comment.