restored some preprocessor conditionals

This commit is contained in:
hyunghwan.chung 2019-03-25 11:46:12 +00:00
parent 45b21a004b
commit a111a5aba9

View File

@ -184,13 +184,13 @@ static MOO_INLINE moo_oop_t _fetch_raw_int (moo_t* moo, moo_int8_t* rawptr, moo_
v = ((struct st_int32_t*)&rawptr[offset])->v; v = ((struct st_int32_t*)&rawptr[offset])->v;
break; break;
#if defined(MOO_HAVE_INT64_T) && (MOO_SIZEOF_OOW_T >= 8) #if defined(MOO_HAVE_INT64_T) && (MOO_SIZEOF_OOW_T >= MOO_SIZEOF_INT64_T)
case 8: case 8:
v = ((struct st_int64_t*)&rawptr[offset])->v; v = ((struct st_int64_t*)&rawptr[offset])->v;
break; break;
#endif #endif
#if defined(MOO_HAVE_INT128_T) && (MOO_SIZEOF_OOW_T >= 16) #if defined(MOO_HAVE_INT128_T) && (MOO_SIZEOF_OOW_T >= MOO_SIZEOF_INT128_T)
case 16: case 16:
v = ((struct st_int128_t*)&rawptr[offset])->v; v = ((struct st_int128_t*)&rawptr[offset])->v;
break; break;
@ -279,13 +279,13 @@ static MOO_INLINE int _store_raw_int (moo_t* moo, moo_uint8_t* rawptr, moo_oow_t
((struct st_int32_t*)&rawptr[offset])->v = w; ((struct st_int32_t*)&rawptr[offset])->v = w;
return 0; return 0;
#if defined(MOO_HAVE_INT64_T) && (MOO_SIZEOF_OOW_T >= 8) #if defined(MOO_HAVE_INT64_T) && (MOO_SIZEOF_OOW_T >= MOO_SIZEOF_INT64_T)
case 8: case 8:
((struct st_int64_t*)&rawptr[offset])->v = w; ((struct st_int64_t*)&rawptr[offset])->v = w;
return 0; return 0;
#endif #endif
#if defined(MOO_HAVE_INT128_T) && (MOO_SIZEOF_OOW_T >= 16) #if defined(MOO_HAVE_INT128_T) && (MOO_SIZEOF_OOW_T >= MOO_SIZEOF_INT128_T)
case 16: case 16:
((struct st_int128_t*)&rawptr[offset])->v = w; ((struct st_int128_t*)&rawptr[offset])->v = w;
return 0; return 0;
@ -1057,4 +1057,3 @@ moo_pfrc_t moo_pf_smptr_as_string (moo_t* moo, moo_mod_t* mod, moo_ooi_t nargs)
MOO_STACK_SETRET (moo, nargs, ss); MOO_STACK_SETRET (moo, nargs, ss);
return MOO_PF_SUCCESS; return MOO_PF_SUCCESS;
} }