Skip to content

Commit

Permalink
Fixed build warning, converting float to double accidentally
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 25, 2024
1 parent 427dd58 commit 048516b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanosvgrast.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static float nsvg__normalize(float *x, float* y)
}

static float nsvg__absf(float x) { return x < 0 ? -x : x; }
static float nsvg__roundf(float x) { return (x >= 0) ? floorf(x + 0.5) : ceilf(x - 0.5); }
static float nsvg__roundf(float x) { return (x >= 0) ? floorf(x + 0.5f) : ceilf(x - 0.5f); }

static void nsvg__flattenCubicBez(NSVGrasterizer* r,
float x1, float y1, float x2, float y2,
Expand Down

0 comments on commit 048516b

Please sign in to comment.