瀏覽代碼

Correct definition of bits per word, as reported in #196. (#217)

Don Porter 6 年之前
父節點
當前提交
de9acc0894
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      LibOS/shim/include/shim_signal.h

+ 1 - 1
LibOS/shim/include/shim_signal.h

@@ -13,7 +13,7 @@ struct shim_signal_handle {
     struct __kernel_sigaction * action;
 };
 
-# define BITS_PER_WORD sizeof(unsigned long)
+# define BITS_PER_WORD (8 * sizeof(unsigned long))
 /* The standard def of this macro is dumb */
 #undef _SIGSET_NWORDS
 # define _SIGSET_NWORDS (NUM_SIGS / BITS_PER_WORD)