diff options
author | benoit-germain <bnt.germain@gmail.com> | 2012-08-20 15:47:17 +0300 |
---|---|---|
committer | benoit-germain <bnt.germain@gmail.com> | 2012-08-20 15:47:17 +0300 |
commit | f871b10af2bf449aaa31953fda3aa4299d161d30 (patch) | |
tree | 9950b6c8c564e016e3a51a3b69f9caf808818e97 /src/lanes.c | |
parent | a549514a73e48dc2838e47ce03ec3cab74bc4572 (diff) | |
download | lanes-f871b10af2bf449aaa31953fda3aa4299d161d30.tar.gz lanes-f871b10af2bf449aaa31953fda3aa4299d161d30.tar.bz2 lanes-f871b10af2bf449aaa31953fda3aa4299d161d30.zip |
Fix 64 bits compilation warnings (issue #34)
Diffstat (limited to 'src/lanes.c')
-rw-r--r-- | src/lanes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lanes.c b/src/lanes.c index 84f23e3..8f5768f 100644 --- a/src/lanes.c +++ b/src/lanes.c | |||
@@ -713,7 +713,7 @@ LUAG_FUNC( linda_tostring) | |||
713 | struct s_Linda* linda = lua_toLinda( L, 1); | 713 | struct s_Linda* linda = lua_toLinda( L, 1); |
714 | luaL_argcheck( L, linda, 1, "expected a linda object!"); | 714 | luaL_argcheck( L, linda, 1, "expected a linda object!"); |
715 | if( linda->name[0]) | 715 | if( linda->name[0]) |
716 | len = sprintf( text, "linda: %.*s", sizeof(text) - 8, linda->name); | 716 | len = sprintf( text, "linda: %.*s", (int)sizeof(text) - 8, linda->name); |
717 | else | 717 | else |
718 | len = sprintf( text, "linda: %p", linda); | 718 | len = sprintf( text, "linda: %p", linda); |
719 | lua_pushlstring( L, text, len); | 719 | lua_pushlstring( L, text, len); |
@@ -740,7 +740,7 @@ LUAG_FUNC( linda_concat) | |||
740 | char text[32]; | 740 | char text[32]; |
741 | int len; | 741 | int len; |
742 | if( linda1->name[0]) | 742 | if( linda1->name[0]) |
743 | len = sprintf( text, "linda: %.*s", sizeof(text) - 8, linda1->name); | 743 | len = sprintf( text, "linda: %.*s", (int)sizeof(text) - 8, linda1->name); |
744 | else | 744 | else |
745 | len = sprintf( text, "linda: %p", linda1); | 745 | len = sprintf( text, "linda: %p", linda1); |
746 | lua_pushlstring( L, text, len); | 746 | lua_pushlstring( L, text, len); |
@@ -751,7 +751,7 @@ LUAG_FUNC( linda_concat) | |||
751 | char text[32]; | 751 | char text[32]; |
752 | int len; | 752 | int len; |
753 | if( linda2->name[0]) | 753 | if( linda2->name[0]) |
754 | len = sprintf( text, "linda: %.*s", sizeof(text) - 8, linda2->name); | 754 | len = sprintf( text, "linda: %.*s", (int)sizeof(text) - 8, linda2->name); |
755 | else | 755 | else |
756 | len = sprintf( text, "linda: %p", linda2); | 756 | len = sprintf( text, "linda: %p", linda2); |
757 | lua_pushlstring( L, text, len); | 757 | lua_pushlstring( L, text, len); |