Commit 032d4af 1 parent c9099a4 commit 032d4af Copy full SHA for 032d4af
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ pub unsafe fn luaL_loadbufferx(
341
341
fn free ( p : * mut c_void ) ;
342
342
}
343
343
344
- let chunk_is_text = size == 0 || ( * data as u8 ) >= b'\n ' ;
344
+ let chunk_is_text = size == 0 || ( * data as u8 ) >= b'\t ' ;
345
345
if !mode. is_null ( ) {
346
346
let modeb = CStr :: from_ptr ( mode) . to_bytes ( ) ;
347
347
if !chunk_is_text && !modeb. contains ( & b'b' ) {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ fn test_safety() -> Result<()> {
69
69
fn test_load ( ) -> Result < ( ) > {
70
70
let lua = Lua :: new ( ) ;
71
71
72
- let func = lua. load ( "return 1+2" ) . into_function ( ) ?;
72
+ let func = lua. load ( "\t return 1+2" ) . into_function ( ) ?;
73
73
let result: i32 = func. call ( ( ) ) ?;
74
74
assert_eq ! ( result, 3 ) ;
75
75
You can’t perform that action at this time.
0 commit comments