| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/math/snns/files/ |
Upload File : |
--- kernel/sources/kr_mem.c.orig Sat Sep 28 20:55:39 2002
+++ kernel/sources/kr_mem.c Sat Sep 28 20:56:45 2002
@@ -26,6 +26,7 @@
#include <values.h>
#else
#include <math.h>
+#include <limits.h>
#endif
@@ -1023,7 +1024,7 @@
if ( (n_ptr = krm_NTableSymbolSearch( symbol_name, symbol_type ) ) != NULL)
{ /* symbol is already in the name table */
- if ((n_ptr->ref_count) < ((unsigned short) MAXSHORT)) {
+ if ((n_ptr->ref_count) < ((unsigned short) SHRT_MAX)) {
n_ptr->ref_count++;
}
return( n_ptr->Entry.symbol );
@@ -1052,7 +1053,7 @@
if (symbol_name == NULL) return;
if ( (n_ptr = krm_NTableSymbolSearch( symbol_name, symbol_type ) ) != NULL)
{ /* symbol is in the name table */
- if ((n_ptr->ref_count) < ((unsigned short) MAXSHORT))
+ if ((n_ptr->ref_count) < ((unsigned short) SHRT_MAX))
{ /* No. of references to this symbol don't exceed the max. reference
count. This means it is possible to delete the symbol if the
reference count is zero.