Skip to content

Commit 01ace7a

Browse files
[Warnings] Fixed Array Access out of Bounds
The way this section of code was written could potentially lead to an array access out of bounds. This was causing a warning in future versions of GCC. Simply fixed this issue.
1 parent 3909a9f commit 01ace7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vpr/src/draw/draw_rr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,8 +926,7 @@ void draw_get_rr_pin_coords(const t_rr_node& node, float* xcen, float* ycen, con
926926

927927
default:
928928
vpr_throw(VPR_ERROR_OTHER, __FILE__, __LINE__,
929-
"in draw_get_rr_pin_coords: Unexpected side %s.\n",
930-
SIDE_STRING[pin_side]);
929+
"in draw_get_rr_pin_coords: Unexpected side.\n");
931930
break;
932931
}
933932

0 commit comments

Comments
 (0)