Skip to content

Commit

Permalink
fix issues on architectures where char is unsigned per default (arm)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Jan 2, 2024
1 parent c2df667 commit 320edce
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/cppgtfs
2 changes: 1 addition & 1 deletion src/gtfs2graph/config/ConfigReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void ConfigReader::read(Config* cfg, int argc, char** argv) const {
{"prune-threshold", required_argument, 0, 'p'},
{0, 0, 0, 0}};

char c;
int c;
while ((c = getopt_long(argc, argv, ":hvim:p:", ops, 0)) != -1) {
switch (c) {
case 'h':
Expand Down
2 changes: 1 addition & 1 deletion src/loom/config/ConfigReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void ConfigReader::read(Config* cfg, int argc, char** argv) const {
{"write-stats", no_argument, 0, 16},
{0, 0, 0, 0}};

char c;
int c;
while ((c = getopt_long(argc, argv, ":hvm:D", ops, 0)) != -1) {
switch (c) {
case 'h':
Expand Down
2 changes: 1 addition & 1 deletion src/octi/config/ConfigReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void ConfigReader::read(Config* cfg, int argc, char** argv) const {
{"abort-after", required_argument, 0, 'a'},
{0, 0, 0, 0}};

char c;
int c;

while ((c = getopt_long(argc, argv, ":hvm:Dg:b:", ops, 0)) != -1) {
switch (c) {
Expand Down
2 changes: 1 addition & 1 deletion src/topo/config/ConfigReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void ConfigReader::read(TopoConfig* cfg, int argc, char** argv) const {

double turnRestrDiff = -1;

char c;
int c;
while ((c = getopt_long(argc, argv, ":hvd:", ops, 0)) != -1) {
switch (c) {
case 'h':
Expand Down
2 changes: 1 addition & 1 deletion src/transitmap/config/ConfigReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void ConfigReader::read(Config* cfg, int argc, char** argv) const {

std::string zoom;

char c;
int c;
while ((c = getopt_long(argc, argv, ":hvlDz:", ops, 0)) != -1) {
switch (c) {
case 'h':
Expand Down
2 changes: 1 addition & 1 deletion src/util
Submodule util updated 2 files
+1 −1 String.h
+4 −3 http/Server.cpp

0 comments on commit 320edce

Please sign in to comment.