mirror of
https://github.com/darlinghq/darlingserver.git
synced 2024-11-23 04:19:44 +00:00
[generate-rpc-wrappers.py] Use explict casting when dealing with different types.
FIxes int-conversion error
This commit is contained in:
parent
0acd58b514
commit
697fa6e643
@ -1238,6 +1238,11 @@ for call in calls:
|
||||
val = "(" + param_name + " < 0) ? -1 : " + str(fd_index)
|
||||
fd_index += 1
|
||||
|
||||
# On recent versions of clang, the compiler will throw out an error if there is
|
||||
# a mismatch with certain integer types.
|
||||
if len(param) > 2:
|
||||
val = "(" + param[2] + ")" + val
|
||||
|
||||
library_source.write("\t\t\t." + param_name + " = " + val + ",\n")
|
||||
library_source.write("\t\t},\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user