projects
/
graphviz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c63a83
)
gvpr tvtypeToStr: take a long long instead of int
author
Matthew Fernandez
<matthew.fernandez@gmail.com>
Wed, 3 Aug 2022 01:16:18 +0000
(18:16 -0700)
committer
Matthew Fernandez
<matthew.fernandez@gmail.com>
Sat, 6 Aug 2022 00:03:40 +0000
(17:03 -0700)
This function is always called with long long values, so lets match it with its
callers. Squashes 2 -Wconversion warnings.
lib/gvpr/compile.c
patch
|
blob
|
history
diff --git
a/lib/gvpr/compile.c
b/lib/gvpr/compile.c
index a2e3e3195fd40edb1b218973bd2c46d79f4fa221..141b06b92d5851b11045ccc691e7e70de773e9ab 100644
(file)
--- a/
lib/gvpr/compile.c
+++ b/
lib/gvpr/compile.c
@@
-2029,9
+2029,7
@@
strToTvtype (char* s)
/* tvtypeToStr:
*/
-static char*
-tvtypeToStr (int v)
-{
+static char *tvtypeToStr(long long v) {
char* s = 0;
switch (v) {
@@
-2075,8
+2073,7
@@
tvtypeToStr (int v)
s = "TV_prepostrev";
break;
default:
- exerror("Unexpected value %d for type tvtype_t",
- v);
+ exerror("Unexpected value %lld for type tvtype_t", v);
break;
}
return s;